This is faster and works better in some cases (e.g. with SVG). However it doesn't work correctly on Windows yet, so remains disabled there by default. MozReview-Commit-ID: AXyeFUGfVgx