From fecc44c62d383700d04cb6b1bf85801627356368 Mon Sep 17 00:00:00 2001 From: David Zbarsky Date: Sun, 5 Aug 2012 13:03:43 -0400 Subject: [PATCH] Bug 780340 - Allow compositor-driven animations of visibility r=mattwoodrow --- layout/style/AnimationCommon.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout/style/AnimationCommon.cpp b/layout/style/AnimationCommon.cpp index a681e28a903..67d53f24bc6 100644 --- a/layout/style/AnimationCommon.cpp +++ b/layout/style/AnimationCommon.cpp @@ -230,6 +230,9 @@ CommonElementAnimationData::CanAnimatePropertyOnCompositor(const dom::Element *a } nsIFrame* frame = aElement->GetPrimaryFrame(); + if (aProperty == eCSSProperty_visibility) { + return true; + } if (aProperty == eCSSProperty_opacity) { bool enabled = nsLayoutUtils::AreOpacityAnimationsEnabled(); if (!enabled && sShouldLog) {