From d0d07c21e881c0064e888ff24e62407fc88f18c4 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Wed, 4 Sep 2013 23:47:25 +1200 Subject: [PATCH] Bug 911889. Part 7: A single change to CSS 'transform' should not be treated as animation. r=dbaron --HG-- extra : rebase_source : 1462732be85f3b52e8b8a842872a7bde7b54e6e5 --- layout/base/ActiveLayerTracker.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/layout/base/ActiveLayerTracker.cpp b/layout/base/ActiveLayerTracker.cpp index 00ce548eed3..0548087ec7d 100644 --- a/layout/base/ActiveLayerTracker.cpp +++ b/layout/base/ActiveLayerTracker.cpp @@ -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; } }