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

Issue 2524303002: Emit console warning when element.animate() keyframe value fails to parse (Closed)

Created:
4 years ago by alancutter (OOO until 2018)
Modified:
4 years ago
Reviewers:
Timothy Loh
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-css, blink-reviews-dom_chromium.org, blink-reviews-style_chromium.org, blink-reviews-w3ctests_chromium.org, chromium-reviews, dglazkov+blink, krit, eae+blinkwatch, Eric Willigers, f(malita), fs, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, sof, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Emit console warning when element.animate() keyframe value fails to parse This change adds a return value to the CSS parser to state whether a CSS value was parsed successfully for a given property. This information is used to allow calls to element.animate() to warn the developer when provided keyframe values are invalid. BUG=618157 Committed: https://crrev.com/1ddf77acbf3b11ee0a3922ca5c1df57d769bac83 Cr-Commit-Position: refs/heads/master@{#434490}

Patch Set 1 #

Total comments: 1

Patch Set 2 : typo #

Patch Set 3 : Test #

Total comments: 6

Patch Set 4 : Review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+225 lines, -127 lines) Patch
A third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning.html View 1 2 3 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning-expected.txt View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/option-element-crash-expected.txt View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/inline/inline-marquee-crash-expected.txt View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/Animatable/animate-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/imported/wpt/web-animations/interfaces/KeyframeEffect/constructor-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectInput.cpp View 7 chunks +31 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/core/animation/StringKeyframe.h View 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/animation/StringKeyframe.cpp View 1 chunk +11 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/DOMWindowCSS.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/PropertySetCSSStyleDeclaration.cpp View 1 chunk +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySet.h View 1 chunk +13 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/css/StylePropertySet.cpp View 3 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParser.h View 4 chunks +22 lines, -19 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParser.cpp View 1 2 3 5 chunks +29 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserImpl.h View 3 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp View 3 chunks +27 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 chunk +9 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/svg/SVGAnimateElement.cpp View 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
alancutter (OOO until 2018)
4 years ago (2016-11-24 07:35:41 UTC) #2
Timothy Loh
When does using didChange instead of didParse do the wrong thing for these warnings? https://codereview.chromium.org/2524303002/diff/1/third_party/WebKit/LayoutTests/animations/element-animate-keyframe-value-warning.html ...
4 years ago (2016-11-24 23:00:23 UTC) #3
alancutter (OOO until 2018)
On 2016/11/24 at 23:00:23, timloh wrote: > When does using didChange instead of didParse do ...
4 years ago (2016-11-25 00:59:50 UTC) #4
alancutter (OOO until 2018)
On 2016/11/25 at 00:59:50, alancutter wrote: > On 2016/11/24 at 23:00:23, timloh wrote: > > ...
4 years ago (2016-11-25 01:00:21 UTC) #5
Timothy Loh
lgtm https://codereview.chromium.org/2524303002/diff/40001/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp File third_party/WebKit/Source/core/css/DOMWindowCSS.cpp (right): https://codereview.chromium.org/2524303002/diff/40001/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp#newcode51 third_party/WebKit/Source/core/css/DOMWindowCSS.cpp:51: .didChange; We might as well change these to ...
4 years ago (2016-11-25 01:40:59 UTC) #8
alancutter (OOO until 2018)
https://codereview.chromium.org/2524303002/diff/40001/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp File third_party/WebKit/Source/core/css/DOMWindowCSS.cpp (right): https://codereview.chromium.org/2524303002/diff/40001/third_party/WebKit/Source/core/css/DOMWindowCSS.cpp#newcode51 third_party/WebKit/Source/core/css/DOMWindowCSS.cpp:51: .didChange; On 2016/11/25 at 01:40:59, Timothy Loh wrote: > ...
4 years ago (2016-11-25 11:59:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2524303002/60001
4 years ago (2016-11-25 11:59:48 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-11-25 13:22:25 UTC) #16
commit-bot: I haz the power
4 years ago (2016-11-25 13:25:52 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1ddf77acbf3b11ee0a3922ca5c1df57d769bac83
Cr-Commit-Position: refs/heads/master@{#434490}

Powered by Google App Engine
This is Rietveld 408576698