mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 00:02:37 +00:00
Bug 1335610 - Revert bogus code added to SVGGeometryFrame::PaintSVG in bug 1325865. r=longsonr
This commit is contained in:
parent
48700590bd
commit
ed3cbebef6
@ -284,16 +284,9 @@ SVGGeometryFrame::PaintSVG(gfxContext& aContext,
|
||||
if (!StyleVisibility()->IsVisible())
|
||||
return DrawResult::SUCCESS;
|
||||
|
||||
gfxMatrix childToUserSpace = aTransform;
|
||||
if (GetContent()->IsSVGElement()) {
|
||||
childToUserSpace = static_cast<const nsSVGElement*>(GetContent())->
|
||||
PrependLocalTransformsTo(childToUserSpace,
|
||||
eChildToUserSpace);
|
||||
}
|
||||
|
||||
// Matrix to the geometry's user space:
|
||||
gfxMatrix newMatrix =
|
||||
aContext.CurrentMatrix().PreMultiply(childToUserSpace).NudgeToIntegers();
|
||||
aContext.CurrentMatrix().PreMultiply(aTransform).NudgeToIntegers();
|
||||
if (newMatrix.IsSingular()) {
|
||||
return DrawResult::BAD_ARGS;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user