Closed
Bug 769103
Opened 13 years ago
Closed 13 years ago
Get SVG masks working for HTML elements under CSS transforms
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla16
People
(Reporter: jwatt, Assigned: jwatt)
References
Details
Attachments
(1 file, 1 obsolete file)
6.81 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
nsSVGMaskFrame::ComputeMaskAlpha doesn'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 it creates surfaces that are too small (or, more to the point, surfaces that don't have enough resolution) when creating the mask pattern it returns. As a result, the more the element is scaled up, the more pixelated the masking 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 | |
Comment 1•13 years ago
|
||
Attachment #637318 -
Flags: review?(roc)
Attachment #637318 -
Flags: review?(roc) → review+
![]() |
Assignee | |
Comment 2•13 years ago
|
||
Actually, that's not right. While falling asleep last night I got to wondering why I could use SetDeviceOffset() at all, and this morning I came up with a test that proves that I shouldn't be. Here's a new patch to fix that, along with that test.
Attachment #637318 -
Attachment is obsolete: true
Attachment #637440 -
Flags: review?(roc)
Attachment #637440 -
Flags: review?(roc) → review+
Comment 3•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla16
You need to log in
before you can comment on or make changes to this bug.
Description
•