Backed out changeset 989403e34775 (bug 911889)

This commit is contained in:
Ed Morley 2013-11-01 12:34:54 +00:00
parent 3e1407af64
commit e1ed7e6c08

View File

@ -162,7 +162,11 @@ ActiveLayerTracker::IsStyleAnimated(nsIFrame* aFrame, nsCSSProperty aProperty)
{
LayerActivity* layerActivity = GetLayerActivity(aFrame);
if (layerActivity) {
if (layerActivity->RestyleCountForProperty(aProperty) >= 2) {
// 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) {
return true;
}
}