Implement frames() timing function

Desktop / Chromium - suzyh [chromium.org] - 20 April 2017 02:24 EDT

This patch adds support for the frames timing function defined in https://www.w3.org/TR/css-timing-1/#frames-timing-functions, based on the implementation for the steps timing function.

BUG=646265 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel

Review-Url: https://codereview.chromium.org/2775143002 Cr-Commit-Position: refs/heads/master@{#465916}

1b0bb2f Implement frames() timing function
cc/animation/keyframed_animation_curve_unittest.cc | 41 ++++++++++++++++
cc/animation/timing_function.cc | 37 ++++++++++++++
cc/animation/timing_function.h | 25 +++++++++-
.../animations/animations-parsing-expected.txt | 16 +++++++
.../LayoutTests/animations/animations-parsing.html | 24 ++++++++++
.../animations/timing-functions-expected.txt | 15 +++---
.../LayoutTests/animations/timing-functions.html | 28 +++++++----
.../frames-timing-functions-output-expected.txt | 11 -----
.../frames-timing-functions-syntax-expected.txt | 5 --
.../AnimationEffectTiming/easing-expected.txt | 56 ----------------------
.../transformed-progress-expected.txt | 6 +--
.../effect-value-transformed-distance-expected.txt | 4 +-
.../effect-value-transformed-distance-expected.txt | 4 +-
.../effect-value-transformed-distance-expected.txt | 4 +-
.../transitions/transitions-parsing-expected.txt | 20 ++++++++
.../transitions/transitions-parsing.html | 30 ++++++++++++
.../core/animation/AnimationInputHelpersTest.cpp | 3 ++
.../core/animation/CompositorAnimationsTest.cpp | 25 ++++++++--
.../Source/core/animation/TimingInputTest.cpp | 10 ++++
.../Source/core/css/CSSTimingFunctionValue.cpp | 9 ++++
.../Source/core/css/CSSTimingFunctionValue.h | 26 ++++++++++
third_party/WebKit/Source/core/css/CSSValue.cpp | 10 ++++
third_party/WebKit/Source/core/css/CSSValue.h | 4 ++
.../WebKit/Source/core/css/CSSValueKeywords.json5 | 1 +
.../core/css/ComputedStyleCSSValueMapping.cpp | 7 +++
.../Source/core/css/parser/CSSPropertyParser.cpp | 22 +++++++++
.../Source/core/css/resolver/CSSToStyleMap.cpp | 7 +++
.../Source/devtools/front_end/sdk/CSSMetadata.js | 12 +++--
.../Source/platform/animation/TimingFunction.cpp | 33 +++++++++++++
.../Source/platform/animation/TimingFunction.h | 27 +++++++++++
.../platform/animation/TimingFunctionTest.cpp | 51 ++++++++++++++++++++
31 files changed, 467 insertions(+), 106 deletions(-)

Upstream: git.chromium.org


  • Share