Bug 876626 - Make CanAnimateProperty correclty respect the CanAnimate_AllowPartial flag. r=dzbarsky

This commit is contained in:
Matt Woodrow 2013-06-18 20:03:20 +12:00
parent 8d80792376
commit 7fcda688c9

View File

@ -304,7 +304,10 @@ CommonElementAnimationData::CanAnimatePropertyOnCompositor(const dom::Element *a
message.AppendLiteral("Performance warning: Async animations are disabled");
LogAsyncAnimationFailure(message);
}
return enabled && (aFlags & CanAnimate_AllowPartial);
bool propertyAllowed = (aProperty == eCSSProperty_transform) ||
(aProperty == eCSSProperty_opacity) ||
(aFlags & CanAnimate_AllowPartial);
return enabled && propertyAllowed;
}
/* static */ void