Chromium Code Reviews
DescriptionCentralize more querySelector logic behind QuerySelectorCache.
We make the types to the functions more clear, move the empty selector
check inside, and handle the NthIndexCache automatically instead of
expecting the callers to do the setup.
This also unifies the exception messages for matches(), closest(),
querySelector(), and querySelectorAll() when an empty string is passed.
BUG=703900
Review-Url: https://codereview.chromium.org/2769783002
Cr-Commit-Position: refs/heads/master@{#458942}
Committed: https://chromium.googlesource.com/chromium/src/+/146a91c44120872cb59aba6078b7cb40e4e8f4f6
Patch Set 1 #
Messages
Total messages: 13 (9 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||