WebKit/webkit — pull request #3 by jwal (2012-12-19 16:09:26+00:00)
Title: Add webkitFillRule property to HTML canvas

This patch exposes the existing rendering context property "fillRule" to the HTML 5 canvas so that it can be used in JavaScript applications. Previously this operation was only available to plugins and other trusted browser internals.

As far as I can tell it is safe to expose but wasn't because it is not yet part of the standard. This is why I named the attribute webkitFillRule and why the enabled-by-default-in-stable Firefox attribute is named mozFillRule.

An example application which relies on this attribute is [pdf.js](https://github.com/mozilla/pdfjs) which is a JavaScript PDF renderer. Their [issue 2351](https://github.com/mozilla/pdf.js/issues/2351) tracks how some PDF files fail to render properly in Chromium and Chrome due to lack of support for this canvas attribute.