Bug 911889. Part 7: A single change to CSS 'transform' should not be treated as animation. r=dbaron

--HG--
extra : rebase_source : 241ce14bd7b3986141c557da566a3756658befa5
This commit is contained in:
Robert O'Callahan 2013-09-04 23:47:25 +12:00
Родитель a0b6414124
Коммит 1349b808d2
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

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