зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1207734 - Part 4.c. Temporary disable async-transform for individual-transform. r=birtles
Since we do not support async-transform for individual-transform yet. MozReview-Commit-ID: gfOzHpjOnQ --HG-- extra : source : e7c6e73fa4215ff49194b5dc89de7f3472259f1b extra : histedit_source : 7526bb5d88ca6cf2bd9cbe5298527d77cfe7d9c1
This commit is contained in:
Родитель
564c97aa32
Коммит
1aadc95d1d
|
@ -1670,6 +1670,12 @@ KeyframeEffectReadOnly::ShouldBlockAsyncTransformAnimations(
|
|||
}
|
||||
}
|
||||
|
||||
// XXX cku temporarily disable async-animation when this frame has any
|
||||
// individual transforms before bug 1425837 been fixed.
|
||||
if (aFrame->StyleDisplay()->HasIndividualTransform()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -2803,6 +2803,10 @@ struct MOZ_NEEDS_MEMMOVABLE_MEMBERS nsStyleDisplay
|
|||
(mWillChangeBitField & NS_STYLE_WILL_CHANGE_TRANSFORM);
|
||||
}
|
||||
|
||||
bool HasIndividualTransform() const {
|
||||
return mSpecifiedRotate || mSpecifiedTranslate || mSpecifiedScale;
|
||||
}
|
||||
|
||||
bool HasPerspectiveStyle() const {
|
||||
return mChildPerspective.GetUnit() == eStyleUnit_Coord;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче