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

Issue 790593004: CSS Parser: Implement selector parsing [1/3] (Closed)

Created:
6 years ago by Timothy Loh
Modified:
6 years ago
CC:
blink-reviews, blink-reviews-css, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

CSS Parser: Implement selector parsing [1/3] This patch begins implementation of CSS selector parsing with css-syntax tokens. This adds support for basic selector constructors, leaving out only attribute parsing and pseudo-element parsing. Most of the code for handling namespaces and building the CSSParserSelector linked list is taken directly from the BisonCSSParser. This follows the grammar of CSS Selectors Level 4 (which isn't yet in terms of the css-syntax). Unlike the Bison parser, I don't allow authors to specify namespace prefixes without element names (e.g. ns|.class). This code is not thread-safe as it uses CSSSelector, which requires AtomicStrings. http://dev.w3.org/csswg/selectors4/#grammar BUG=330389 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=187202

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+440 lines, -1 line) Patch
M Source/core/core.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParser.cpp View 1 2 chunks +8 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParserTokenRange.h View 1 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/css/parser/CSSParserTokenRange.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/CSSParserValues.h View 2 1 chunk +4 lines, -0 lines 0 comments Download
A Source/core/css/parser/CSSSelectorParser.h View 1 1 chunk +62 lines, -0 lines 0 comments Download
A Source/core/css/parser/CSSSelectorParser.cpp View 1 2 1 chunk +348 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
Timothy Loh
Whew, this is ready for review now. Including the next two patches, the only remaining ...
6 years ago (2014-12-10 07:29:54 UTC) #7
Timothy Loh
PTAL
6 years ago (2014-12-14 23:53:02 UTC) #8
alancutter (OOO until 2018)
lgtm with nits, looking forward to this code getting proper testing. It's a shame the ...
6 years ago (2014-12-15 13:52:59 UTC) #9
Timothy Loh
Cleaning up the actual selector building (e.g. moving away from CSSParserSelectors) is months down the ...
6 years ago (2014-12-15 23:43:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/790593004/140001
6 years ago (2014-12-15 23:44:28 UTC) #12
commit-bot: I haz the power
6 years ago (2014-12-16 01:53:23 UTC) #13
Message was sent while issue was closed.
Committed patchset #3 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=187202

Powered by Google App Engine
This is Rietveld 408576698