Get SVG patterns working under HTML elements with CSS transforms applied

RESOLVED FIXED in mozilla16

Status

()

Core
SVG
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: jwatt, Assigned: jwatt)

Tracking

({perf})

Trunk
mozilla16
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Assignee)

Description

5 years ago
Along the lines of bug 769103, SVG patterns don't account for transforms that are already applied to the gfxContext that is being painting to. For elements that are under a CSS transform that's scales the element up, this means that we create surfaces that are too small (or, more to the point, surfaces that don't have enough resolution) when creating patterns. As a result, the more the element is scaled up, the more pixelated the pattern becomes.

This isn't generally a problem for SVG, since the transforms aren't accumulated on the gfxMatrix as we descend down the tree. However, when switching to display list painting of SVG, we do accumulate the transforms as we descend the tree, and this bug causes various SVG reftests to fail.
(Assignee)

Updated

5 years ago
Blocks: 614732
(Assignee)

Comment 1

5 years ago
Created attachment 641854 [details] [diff] [review]
patch
Attachment #641854 - Flags: review?(roc)
Attachment #641854 - Flags: review?(roc) → review+
(Assignee)

Comment 2

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/b489e06d3874
Target Milestone: --- → mozilla16
https://hg.mozilla.org/mozilla-central/rev/b489e06d3874
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.