mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-05 16:22:53 +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())
|
if (!StyleVisibility()->IsVisible())
|
||||||
return DrawResult::SUCCESS;
|
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:
|
// Matrix to the geometry's user space:
|
||||||
gfxMatrix newMatrix =
|
gfxMatrix newMatrix =
|
||||||
aContext.CurrentMatrix().PreMultiply(childToUserSpace).NudgeToIntegers();
|
aContext.CurrentMatrix().PreMultiply(aTransform).NudgeToIntegers();
|
||||||
if (newMatrix.IsSingular()) {
|
if (newMatrix.IsSingular()) {
|
||||||
return DrawResult::BAD_ARGS;
|
return DrawResult::BAD_ARGS;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user