зеркало из https://github.com/mozilla/gecko-dev.git
Bug 911889. Part 7: A single change to CSS 'transform' should not be treated as animation. r=dbaron
This commit is contained in:
Родитель
0e38e49729
Коммит
5a693dce99
|
@ -162,11 +162,7 @@ ActiveLayerTracker::IsStyleAnimated(nsIFrame* aFrame, nsCSSProperty aProperty)
|
|||
{
|
||||
LayerActivity* layerActivity = GetLayerActivity(aFrame);
|
||||
if (layerActivity) {
|
||||
// XXX should we really treat a single change to transform as animation?
|
||||
uint8_t minStyleChangesToBeConsideredAnimation =
|
||||
aProperty == eCSSProperty_opacity ? 2 : 1;
|
||||
if (layerActivity->RestyleCountForProperty(aProperty) >=
|
||||
minStyleChangesToBeConsideredAnimation) {
|
||||
if (layerActivity->RestyleCountForProperty(aProperty) >= 2) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче