Closed Bug 769970 Opened 13 years ago Closed 13 years ago

Get SVG patterns working under HTML elements with CSS transforms applied

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

(Keywords: perf)

Attachments

(1 file)

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.
Blocks: 614732
Attached patch patchSplinter Review
Attachment #641854 - Flags: review?(roc)
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: