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

Issue 1408063004: Parse animation and transition shorthands in CSSPropertyParser with CSSParserTokens (Closed)

Created:
5 years, 2 months ago by Timothy Loh
Modified:
5 years, 1 month ago
CC:
chromium-reviews, shans, rjwright, blink-reviews-animation_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/src.git@anim4
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Parse animation and transition shorthands in CSSPropertyParser with CSSParserTokens This patch finishes moving animation and transition properties from the LegacyCSSPropertyParser to the CSSPropertyParser. Instead of having separate almost-identical functions for the two shorthands, I've unified these into a single function. Similar to parseSingleValue, I've updated parseShorthand to take an unresolved property instead of a resolved property. This is necessary as -webkit-animation will accept <string>s for the animation-name component. This patch also fixes an edge case in parsing the shorthands where we currently allow shorthand values with leading or trailing commas, for example "transition: left," and "animation: , 0s". BUG=499780 Committed: https://crrev.com/eb8b6acea091169e7063d11076ac1ad0c482209f Cr-Commit-Position: refs/heads/master@{#356816}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 10

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -397 lines) Patch
M third_party/WebKit/LayoutTests/animations/animations-parsing.html View 1 chunk +30 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/animations/animations-parsing-expected.txt View 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.h View 1 2 1 chunk +1 line, -14 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 chunks +55 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp View 1 2 5 chunks +4 lines, -380 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 10 (2 generated)
rwlbuis
Nice work, almost there I think, still some questions. https://codereview.chromium.org/1408063004/diff/20001/third_party/WebKit/LayoutTests/animations/animations-parsing.html File third_party/WebKit/LayoutTests/animations/animations-parsing.html (right): https://codereview.chromium.org/1408063004/diff/20001/third_party/WebKit/LayoutTests/animations/animations-parsing.html#newcode1110 third_party/WebKit/LayoutTests/animations/animations-parsing.html:1110: ...
5 years, 2 months ago (2015-10-20 14:32:24 UTC) #2
Timothy Loh
Rob: The sydney blink team is away on an offsite for the rest of the ...
5 years, 2 months ago (2015-10-21 06:07:39 UTC) #3
rwlbuis
Thanks for letting me know about OOO. I guess one more iteration is needed. https://codereview.chromium.org/1408063004/diff/20001/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp ...
5 years, 2 months ago (2015-10-21 20:58:39 UTC) #4
Timothy Loh
updated & rebased, ptal :)
5 years, 1 month ago (2015-10-29 03:53:59 UTC) #5
rwlbuis
lgtm
5 years, 1 month ago (2015-10-29 04:35:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1408063004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1408063004/40001
5 years, 1 month ago (2015-10-29 11:53:02 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-10-29 11:56:52 UTC) #9
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 11:57:29 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/eb8b6acea091169e7063d11076ac1ad0c482209f
Cr-Commit-Position: refs/heads/master@{#356816}

Powered by Google App Engine
This is Rietveld 408576698