Implement KeyframeEffectReadOnly::getKeyframes()
This CL implements most of the getKeyframes() algorithm from the web-animations spec[0]. There are a few deviations from the spec: * We always include the 'composite' property. This is because we don't yet track the general composite operation for the KeyframeEffect, so cannot tell when a Keyframe has the same operation. * Shorthand CSS properties in the input keyframe argument will have been expanded to longhand properties in getKeyframes(). This is because we improperly expand shorthand properties when creating a StringKeyframe. Despite the deviations this implementation allows us to pass >40 additional WPT tests. It also makes the failure reasons for many more tests explicit, as they no longer just fail on "getKeyframes doesn't exist". [0]: http://w3c.github.io/web-animations/#dom-keyframeeffectreadonly-getkeyframes Bug: 777971 Change-Id: I80cf62bc0121b946b1bf896890e96afd27437057 Reviewed-on: https://chromium-review.googlesource.com/758921Reviewed-by:Jeremy Roman <jbroman@chromium.org> Reviewed-by:
Andrey Kosyakov <caseq@chromium.org> Reviewed-by:
Robert Flack <flackr@chromium.org> Reviewed-by:
Xida Chen <xidachen@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#517701}
Showing
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment