mozilla/pdf.js — pull request #3791 by brendandahl (2013-10-09 18:30:39+00:00)
Title: Fix css rotation for canvas and text layer.

I believe this could all be simplified if we instead just did everything at one orientation and then rotated, but that will be an even bigger change.