Bug 1335610 - Revert bogus code added to SVGGeometryFrame::PaintSVG in bug 1325865. r=longsonr

This commit is contained in:
Jonathan Watt 2017-01-16 10:04:16 +00:00
parent 48700590bd
commit ed3cbebef6

View File

@ -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;
}