mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Bug 805024 r=dholbert
This commit is contained in:
parent
8145b79ba9
commit
ad6ef3f12a
@ -98,7 +98,8 @@ nsSVGDisplayContainerFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
|
||||
const nsRect& aDirtyRect,
|
||||
const nsDisplayListSet& aLists)
|
||||
{
|
||||
if (!static_cast<const nsSVGElement*>(mContent)->HasValidDimensions()) {
|
||||
if (mContent->IsSVG() &&
|
||||
!static_cast<const nsSVGElement*>(mContent)->HasValidDimensions()) {
|
||||
return NS_OK;
|
||||
}
|
||||
return BuildDisplayListForNonBlockChildren(aBuilder, aDirtyRect, aLists);
|
||||
@ -177,6 +178,7 @@ nsSVGDisplayContainerFrame::IsSVGTransformed(gfxMatrix *aOwnTransform,
|
||||
HasChildrenOnlyTransform(aFromParentTransform);
|
||||
}
|
||||
|
||||
if (mContent->IsSVG()) {
|
||||
nsSVGElement *content = static_cast<nsSVGElement*>(mContent);
|
||||
if (content->GetAnimatedTransformList() ||
|
||||
content->GetAnimateMotionTransform()) {
|
||||
@ -186,6 +188,7 @@ nsSVGDisplayContainerFrame::IsSVGTransformed(gfxMatrix *aOwnTransform,
|
||||
}
|
||||
foundTransform = true;
|
||||
}
|
||||
}
|
||||
return foundTransform;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user