mozilla/pdf.js — pull request #1443 by brendandahl (2012-03-29 16:04:58+00:00)
Title: Fix gradients for fill and stroke.

The radial and axial gradients were never setting the fillStyle of the context, hence why in the pdf below the whole page was just filled with black.

I also removed some unused ctx variables that were being passed around. That code is all worker code and would never have the ctx anyway.

Last, the gradients and pattern code needs lots of work. There are a lot of things we are ignoring right now such as bounding boxes, extend, and I think we may not be handling all the transformations correctly (especially in the case of form xobjects with patterns).

Expected to break:
issue1001.pdf

Fixes:
https://bugzilla.mozilla.org/show_bug.cgi?id=738979