DescriptionRenamed check for requiring ShadowPseudo combinator.
Some selectors have an implicit boundary crossing combinator inside what
is a compound selector in the selector text. This is an implementation
detail, but we insert such combinators for our SelectorChecker to switch
scopes during matching. Example:
input::-webkit-clear-button
This is a compund selector matching a pseudo element inside the input's
shadow tree. In the implementation, we store that as:
input /implicit-shadow-crossing-combinator/ ::-webkit-clear-button
Where the pseudo element simple selector will match the element inside
the shadow tree, and the implicit combinator will act as a descendant
combinator that can reach into the shadow so that we make the way up to
matching the input type selector on the host element.
Here, we rename methods in the selector parser to reflect that and make
the code easier to understand.
There should be no behavioral changes.
R=timloh@chromium.org,esprehn@chromium.org
Committed: https://crrev.com/d8ec75e351cfb52ffb1ff9550ca4d4462fda53b4
Cr-Commit-Position: refs/heads/master@{#368548}
Patch Set 1 #
Messages
Total messages: 11 (4 generated)
|