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 ac3c3cd458
commit ccb554f4cf

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