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

Issue 1319343004: Add property parser code path based on CSSParserTokenRange (Closed)

Created:
5 years, 3 months ago by rwlbuis
Modified:
5 years, 2 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add property parser code path based on CSSParserTokenRange Add property parser code path based on CSSParserTokenRange and put most of this code in CSSPropertyParser.cpp, keeping the legacy code in LegacyCSSPropertyParser.cpp. Port some simple properties and two shorthands, and introduce some CSSParserTokenRange specific helper methods. BUG=499780 Committed: https://crrev.com/0a1b19a1a6f31bf6dfade6bcf5877531bea23daf git-svn-id: svn://svn.chromium.org/blink/trunk@202208 bbb929c8-8fbe-4397-9dbb-9b2b20218538

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 8

Patch Set 3 : Address review comments #

Total comments: 1

Patch Set 4 : Fix auto #

Total comments: 2

Patch Set 5 : Split out new path into separate file + add shorthand handling #

Patch Set 6 : Fix ASSERTs #

Patch Set 7 : Add parsePage #

Patch Set 8 : Add handling of overflow shorthand #

Total comments: 1

Patch Set 9 : Rename to LegacyCSSPropertyParser.cpp #

Patch Set 10 : Add quotes handling #

Patch Set 11 : Add webkit-highlight parsing #

Total comments: 14

Patch Set 12 : Address review comments #

Patch Set 13 : Move driver code #

Total comments: 2

Patch Set 14 : Patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -8032 lines) Patch
M Source/core/core.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/MediaQueryExp.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +1 line, -4 lines 0 comments Download
M Source/core/css/parser/CSSParserImpl.cpp View 1 2 2 chunks +1 line, -5 lines 0 comments Download
M Source/core/css/parser/CSSParserToken.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParserToken.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +19 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParserValues.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +6 lines, -6 lines 0 comments Download
M Source/core/css/parser/CSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +130 lines, -7840 lines 0 comments Download
A + Source/core/css/parser/LegacyCSSPropertyParser.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +20 lines, -175 lines 0 comments Download

Messages

Total messages: 36 (13 generated)
Timothy Loh
+alancutter https://codereview.chromium.org/1319343004/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1319343004/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp#newcode93 Source/core/css/parser/CSSPropertyParser.cpp:93: CSSParserValueList* valueList, CSSParserTokenRange* range, const CSSParserContext& context, Having ...
5 years, 3 months ago (2015-09-03 02:05:53 UTC) #2
Timothy Loh
https://codereview.chromium.org/1319343004/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1319343004/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp#newcode6876 Source/core/css/parser/CSSPropertyParser.cpp:6876: // Every comma-separated list of identifiers is a valid ...
5 years, 3 months ago (2015-09-03 02:06:58 UTC) #3
rwlbuis
PTAL. Also I found webkitMarginCollapse as a possible nice shorthand to test in the new ...
5 years, 3 months ago (2015-09-03 22:27:54 UTC) #4
Timothy Loh
https://codereview.chromium.org/1319343004/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1319343004/diff/20001/Source/core/css/parser/CSSPropertyParser.cpp#newcode6901 Source/core/css/parser/CSSPropertyParser.cpp:6901: values->append(cssValuePool().createIdentifierValue(currentToken.id())); On 2015/09/03 22:27:54, rwlbuis wrote: > On 2015/09/03 ...
5 years, 3 months ago (2015-09-04 01:24:40 UTC) #5
rwlbuis
On 2015/09/04 01:24:40, Timothy Loh wrote: > > Sounds good, I did that. A bit ...
5 years, 3 months ago (2015-09-04 15:13:07 UTC) #6
alancutter (OOO until 2018)
I would like to see a stronger separation between the token based and CSSParserValueList based ...
5 years, 3 months ago (2015-09-08 00:10:48 UTC) #7
rwlbuis
I think the suggestion of seperating the new code path from the old makes a ...
5 years, 3 months ago (2015-09-08 22:40:06 UTC) #9
alancutter (OOO until 2018)
I think we should rename the old CSSPropertyParser LegacyCSSPropertyParser and the new one CSSPropertyParser, WDYT? ...
5 years, 3 months ago (2015-09-09 04:45:26 UTC) #10
rwlbuis
On 2015/09/09 04:45:26, alancutter wrote: > I think we should rename the old CSSPropertyParser LegacyCSSPropertyParser ...
5 years, 3 months ago (2015-09-09 23:14:36 UTC) #11
Timothy Loh
parseFoo -> consumeFoo SGTM. Static functions also SGTM. I think we should move the driving ...
5 years, 3 months ago (2015-09-10 01:13:37 UTC) #12
rwlbuis
> parseFoo -> consumeFoo SGTM. Static functions also SGTM. Done. >I think we should move ...
5 years, 3 months ago (2015-09-10 21:52:42 UTC) #13
alancutter (OOO until 2018)
Overall approach lgtm. https://codereview.chromium.org/1319343004/diff/250001/Source/core/css/parser/CSSPropertyParser.cpp File Source/core/css/parser/CSSPropertyParser.cpp (right): https://codereview.chromium.org/1319343004/diff/250001/Source/core/css/parser/CSSPropertyParser.cpp#newcode75 Source/core/css/parser/CSSPropertyParser.cpp:75: ASSERT(range.peek().type() == IdentToken); Let's just return ...
5 years, 3 months ago (2015-09-11 07:53:49 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319343004/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319343004/270001
5 years, 3 months ago (2015-09-14 10:51:20 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/133287)
5 years, 3 months ago (2015-09-14 11:30:35 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319343004/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319343004/270001
5 years, 3 months ago (2015-09-14 12:29:28 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/133294)
5 years, 3 months ago (2015-09-14 13:14:35 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319343004/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319343004/270001
5 years, 3 months ago (2015-09-14 13:58:07 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/133305)
5 years, 3 months ago (2015-09-14 14:39:31 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319343004/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319343004/270001
5 years, 3 months ago (2015-09-14 14:58:02 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/133315)
5 years, 3 months ago (2015-09-14 15:41:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1319343004/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1319343004/270001
5 years, 3 months ago (2015-09-14 17:15:31 UTC) #34
commit-bot: I haz the power
Committed patchset #14 (id:270001) as https://src.chromium.org/viewvc/blink?view=rev&revision=202208
5 years, 3 months ago (2015-09-14 17:37:57 UTC) #35
commit-bot: I haz the power
5 years, 2 months ago (2015-09-23 12:33:48 UTC) #36
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/0a1b19a1a6f31bf6dfade6bcf5877531bea23daf

Powered by Google App Engine
This is Rietveld 408576698