DescriptionCSS 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 #
Messages
Total messages: 13 (7 generated)
|