зеркало из https://github.com/mozilla/gecko-dev.git
Bug 789960 - Fix crash in nsLayoutUtils::HasAnimationsForCompositor r=roc
This commit is contained in:
Родитель
d72524cd51
Коммит
292c45ee3b
|
@ -998,7 +998,8 @@ nsIFrame::IsSVGTransformed(gfxMatrix *aOwnTransforms,
|
|||
bool
|
||||
nsIFrame::Preserves3DChildren() const
|
||||
{
|
||||
if (GetStyleDisplay()->mTransformStyle != NS_STYLE_TRANSFORM_STYLE_PRESERVE_3D || !IsTransformed())
|
||||
if (GetStyleDisplay()->mTransformStyle != NS_STYLE_TRANSFORM_STYLE_PRESERVE_3D ||
|
||||
!GetStyleDisplay()->HasTransform())
|
||||
return false;
|
||||
|
||||
// If we're all scroll frame, then all descendants will be clipped, so we can't preserve 3d.
|
||||
|
@ -1014,7 +1015,8 @@ nsIFrame::Preserves3DChildren() const
|
|||
bool
|
||||
nsIFrame::Preserves3D() const
|
||||
{
|
||||
if (!GetParent() || !GetParent()->Preserves3DChildren() || !IsTransformed()) {
|
||||
if (!GetParent() || !GetParent()->Preserves3DChildren() ||
|
||||
!GetStyleDisplay()->HasTransform()) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче