mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 876626 - Make CanAnimateProperty correclty respect the CanAnimate_AllowPartial flag. r=dzbarsky
This commit is contained in:
parent
ac3c3cd458
commit
ccb554f4cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user