Bug 1149848 - Stop calling NotifyAnimated (and thus repeatedly cycling layer activity) when sending OMT animations to the compositor. r=birtles

I checked in gdb that with the patch, we're no longer calling
PresShell::Paint repeatedly on the testcase (whereas we are without the
patch).
This commit is contained in:
L. David Baron 2015-04-06 18:13:48 -07:00
Родитель eef8e4b904
Коммит b0193d991a
1 изменённых файлов: 0 добавлений и 12 удалений

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

@ -158,18 +158,6 @@ CommonAnimationManager::GetAnimationsForCompositor(nsIContent* aContent,
}
// This animation can be done on the compositor.
// Mark the frame as active, in case we are able to throttle this animation.
nsIFrame* frame = nsLayoutUtils::GetStyleFrame(collection->mElement);
if (frame) {
const auto& info = sLayerAnimationInfo;
for (size_t i = 0; i < ArrayLength(info); i++) {
if (aProperty == info[i].mProperty) {
ActiveLayerTracker::NotifyAnimated(frame, aProperty);
break;
}
}
}
return collection;
}