Bug 1483404 - Use "auto" values for unspecified keyframe-specific composite operations; r=smaug

Summary:
This brings our implementation into line with the following spec change:

  ced6b5aac0

See https://github.com/w3c/csswg-drafts/issues/3000

Reviewers: smaug

Tags: #secure-revision

Bug #: 1483404

Differential Revision: https://phabricator.services.mozilla.com/D3384
This commit is contained in:
Brian Birtles
2018-08-15 09:51:28 +09:00
parent 2551bdf367
commit f025528e45
11 changed files with 151 additions and 116 deletions

View File

@@ -1099,9 +1099,8 @@ KeyframeEffect::GetKeyframes(JSContext*& aCx,
keyframe.mTimingFunction.ref().AppendToString(keyframeDict.mEasing);
} // else if null, leave easing as its default "linear".
if (keyframe.mComposite) {
keyframeDict.mComposite.SetValue(keyframe.mComposite.value());
}
keyframeDict.mComposite =
KeyframeUtils::ToCompositeOperationOrAuto(keyframe.mComposite);
JS::Rooted<JS::Value> keyframeJSValue(aCx);
if (!ToJSValue(aCx, keyframeDict, &keyframeJSValue)) {