DescriptionRefactored compound selector parsing methods.
Methods for adding simple selectors to compound selectors had names like
rewriteSpecifiers. This CL tries to make more sense to it and adds
documentation for the not-so-straightforward ways of adding simple
selectors.
Renamed tagIsForNamespaceRule to tagIsImplicit as that is what it means.
The type selector is necessary as a placeholder for use during selector
matching, but not necessary to add to the serialization.
What complicates this code a lot, is the fact that we can have one or
more implicit ShadowPseudo combinators within the same compound selector,
as seen by the parser, which means it's really multiple compound
selectors. Handling these implicit combinators as true combinators in the
parser could simplify this code. See added TODO.
R=timloh@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194107
Patch Set 1 #
Total comments: 4
Patch Set 2 : Rebased #Patch Set 3 : Addresses review issues #
Messages
Total messages: 7 (2 generated)
|