Bug 780340 - Allow compositor-driven animations of visibility r=mattwoodrow

This commit is contained in:
David Zbarsky 2012-08-04 07:03:47 -07:00
parent fbb42e3f19
commit 0d68b46a25

View File

@ -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) {