Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Issue 1851003002: Throw TypeError if easing string is invalid. (Closed)

Created:
4 years, 8 months ago by suzyh_UTC10 (ex-contributor)
Modified:
4 years, 8 months ago
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, chromium-reviews, Eric Willigers, rjwright, shans
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Throw TypeError if easing string is invalid. Currently, if an animation is created with options containing an invalid value for 'easing', it is ignored and the default easing is used instead. This patch changes the implementation to throw a TypeError as specced (http://w3c.github.io/web-animations/#dom-animationeffecttiming-easing). As described in the bug referenced below, we are temporarily exempting "function (a){return a}" from throwing a TypeError. A TODO is added to remove this exemption for M54. This patch also adds a layout test animation-effect-timing-easing.html that is equivalent to the unit test ParseAnimationTimingFunction in AnimationInputHelpersTest.cpp. This enables the test results to be compared against those of other browsers. Note that the test is therefore duplicated because the unit test is not removed. BUG=601672 Committed: https://crrev.com/84a58b756e4c8c2746cdfc8f326c11f06d0b2865 Cr-Commit-Position: refs/heads/master@{#387250}

Patch Set 1 #

Patch Set 2 : Fix animation-timeline layout test; rebase #

Patch Set 3 : Rebase #

Total comments: 12

Patch Set 4 : Merge after adding UseCounters #

Patch Set 5 : Response to review comments #

Patch Set 6 : Return default timing function instead of nullptr if not throwing TypeError #

Patch Set 7 : Use DCHECK instead of ASSERT; fix animation-effect-timing-easing layout test #

Total comments: 2

Patch Set 8 : Response to review #

Patch Set 9 : Rebase #

Patch Set 10 : Fix "liner"->"linear" typo in ui/file_manager js file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -152 lines) Patch
M third_party/WebKit/LayoutTests/animations/function-easing-use-counters-linear.html View 1 2 3 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other1.html View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/animations/function-easing-use-counters-other2.html View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/animation/animation-timeline.html View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/animation/animation-timeline-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/web-animations-api/animation-effect-timing-easing.html View 1 2 3 4 5 6 1 chunk +63 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationEffectTiming.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationEffectTiming.cpp View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationEffectTiming.idl View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationInputHelpers.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationInputHelpers.cpp View 1 2 3 4 5 6 7 3 chunks +26 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp View 1 2 3 4 4 chunks +39 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.cpp View 1 2 3 5 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/animation/ElementAnimation.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffect.cpp View 1 2 3 4 5 6 7 1 chunk +8 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/KeyframeEffectTest.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/TimingInput.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/TimingInput.cpp View 1 2 3 4 5 6 7 2 chunks +20 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/animation/TimingInputTest.cpp View 1 2 3 2 chunks +110 lines, -75 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Deprecation.cpp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/elements/files_ripple.js View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 63 (26 generated)
suzyh_UTC10 (ex-contributor)
4 years, 8 months ago (2016-04-01 05:19:27 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/1
4 years, 8 months ago (2016-04-01 05:19:59 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/189517)
4 years, 8 months ago (2016-04-01 06:06:59 UTC) #6
suzyh_UTC10 (ex-contributor)
On 2016/04/01 at 06:06:59, commit-bot wrote: > Dry run: Try jobs failed on following builders: ...
4 years, 8 months ago (2016-04-01 08:10:33 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/20001
4 years, 8 months ago (2016-04-04 00:20:27 UTC) #9
suzyh_UTC10 (ex-contributor)
+samli for animation-timeline layout test change.
4 years, 8 months ago (2016-04-04 00:27:30 UTC) #11
samli
lgtm for inspector change
4 years, 8 months ago (2016-04-04 01:01:02 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/204632)
4 years, 8 months ago (2016-04-04 01:05:03 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/40001
4 years, 8 months ago (2016-04-05 02:25:46 UTC) #16
suzyh_UTC10 (ex-contributor)
Looks like browser_tests failures may have been fixed by the latest rebase. dstockwell PTAL
4 years, 8 months ago (2016-04-05 02:53:12 UTC) #17
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/191116)
4 years, 8 months ago (2016-04-05 03:11:59 UTC) #19
alancutter (OOO until 2018)
https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp File third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp (right): https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp#newcode66 third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp:66: return timingFunction && string == timingFunction->toString(); It's probably better ...
4 years, 8 months ago (2016-04-05 04:50:06 UTC) #21
suzyh_UTC10 (ex-contributor)
On 2016/04/05 at 02:53:12, suzyh wrote: > Looks like browser_tests failures may have been fixed ...
4 years, 8 months ago (2016-04-05 06:15:01 UTC) #22
suzyh_UTC10 (ex-contributor)
https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp File third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp (right): https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp#newcode66 third_party/WebKit/Source/core/animation/AnimationInputHelpersTest.cpp:66: return timingFunction && string == timingFunction->toString(); On 2016/04/05 at ...
4 years, 8 months ago (2016-04-12 08:04:23 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/80001
4 years, 8 months ago (2016-04-12 08:04:44 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/120315)
4 years, 8 months ago (2016-04-12 08:20:28 UTC) #29
suzyh_UTC10 (ex-contributor)
https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/ElementAnimation.h File third_party/WebKit/Source/core/animation/ElementAnimation.h (right): https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/ElementAnimation.h#newcode59 third_party/WebKit/Source/core/animation/ElementAnimation.h:59: ASSERT(TimingInput::convert(duration, timing)); On 2016/04/12 at 08:04:23, suzyh wrote: > ...
4 years, 8 months ago (2016-04-12 08:59:21 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/100001
4 years, 8 months ago (2016-04-12 08:59:47 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/120246)
4 years, 8 months ago (2016-04-12 09:16:21 UTC) #34
Timothy Loh
https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/ElementAnimation.h File third_party/WebKit/Source/core/animation/ElementAnimation.h (right): https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/ElementAnimation.h#newcode59 third_party/WebKit/Source/core/animation/ElementAnimation.h:59: ASSERT(TimingInput::convert(duration, timing)); On 2016/04/12 08:59:21, suzyh wrote: > On ...
4 years, 8 months ago (2016-04-12 13:21:12 UTC) #35
suzyh_UTC10 (ex-contributor)
On 2016/04/12 at 13:21:12, timloh wrote: > https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/ElementAnimation.h > File third_party/WebKit/Source/core/animation/ElementAnimation.h (right): > > https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/ElementAnimation.h#newcode59 ...
4 years, 8 months ago (2016-04-13 00:07:11 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/120001
4 years, 8 months ago (2016-04-13 00:07:41 UTC) #38
alancutter (OOO until 2018)
lgtm with nits. https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/TimingInput.h File third_party/WebKit/Source/core/animation/TimingInput.h (right): https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/TimingInput.h#newcode22 third_party/WebKit/Source/core/animation/TimingInput.h:22: static bool convert(double duration, Timing& timingOutput); ...
4 years, 8 months ago (2016-04-13 00:46:38 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/195836)
4 years, 8 months ago (2016-04-13 01:16:47 UTC) #41
suzyh_UTC10 (ex-contributor)
https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/TimingInput.h File third_party/WebKit/Source/core/animation/TimingInput.h (right): https://codereview.chromium.org/1851003002/diff/40001/third_party/WebKit/Source/core/animation/TimingInput.h#newcode22 third_party/WebKit/Source/core/animation/TimingInput.h:22: static bool convert(double duration, Timing& timingOutput); On 2016/04/13 at ...
4 years, 8 months ago (2016-04-13 01:48:09 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/160001
4 years, 8 months ago (2016-04-13 01:48:25 UTC) #44
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/195872)
4 years, 8 months ago (2016-04-13 02:56:49 UTC) #46
suzyh_UTC10 (ex-contributor)
On 2016/04/13 at 02:56:49, commit-bot wrote: > Dry run: Try jobs failed on following builders: ...
4 years, 8 months ago (2016-04-14 01:13:36 UTC) #47
suzyh_UTC10 (ex-contributor)
+hirono for ui/file_manager js change
4 years, 8 months ago (2016-04-14 01:16:06 UTC) #49
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/180001
4 years, 8 months ago (2016-04-14 01:16:42 UTC) #51
hirono
lgtm, thank you for fixing it!
4 years, 8 months ago (2016-04-14 02:36:04 UTC) #52
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-14 02:48:13 UTC) #54
suzyh_UTC10 (ex-contributor)
-dstockwell +timloh for Source/core OWNERS approval, since Doug is OOO
4 years, 8 months ago (2016-04-14 04:43:47 UTC) #56
Timothy Loh
On 2016/04/14 04:43:47, suzyh wrote: > -dstockwell +timloh for Source/core OWNERS approval, since Doug is ...
4 years, 8 months ago (2016-04-14 06:45:09 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1851003002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1851003002/180001
4 years, 8 months ago (2016-04-14 06:58:30 UTC) #60
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 8 months ago (2016-04-14 07:03:45 UTC) #61
commit-bot: I haz the power
4 years, 8 months ago (2016-04-14 07:04:59 UTC) #63
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/84a58b756e4c8c2746cdfc8f326c11f06d0b2865
Cr-Commit-Position: refs/heads/master@{#387250}

Powered by Google App Engine
This is Rietveld 408576698