Closed
Bug 342523
Opened 19 years ago
Closed 19 years ago
mask element does not work under thebes
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
DUPLICATE
of bug 331130
People
(Reporter: longsonr, Assigned: longsonr)
References
()
Details
nsSVGCairoCanvas::Init goes into the ifdef MOZ_ENABLE_CAIRO_GFX and which does not initialise mHeight or mWidth. When the mask element c
Unfortunately nsThebesRenderingContext::GetDrawingSurface returns NS_ERROR_NOT_IMPLEMENTED so we can't use that to get the dimensions and I'm not sure we could get the dimensions from a thebes drawing surface anyway.
Perhaps we can do something similar to patterns.
| Assignee | ||
Updated•19 years ago
|
Assignee: general → longsonr
| Assignee | ||
Comment 1•19 years ago
|
||
Even if I fix nsSVGMaskFrame::MaskPaint to create its own surface there are still 3 other calls to nsSVGUtils::GetSurface in nsSVGUtils. I think I need to replace the call to aCanvas->GetSurfaceSize with something that gets the size of the outerSVGFrame in appropriate units.
Any hints on this would be gratefully accepted.
There is some thought to using the group push/pop functionality recently added to cairo for opacity. It could be used for mask as well, though there is the complication that the svg definition of mask uses all four channels of the image rather than just one.
*** This bug has been marked as a duplicate of 331130 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•