Chromium Code Reviews
DescriptionSimplify some shadow crossing logic in SelectorQuery.cpp
ElementTraversal::firstWithin is the same as doing
::next(rootNode, &rootNode) we can just do that here. We can also use
isOpenOrV0() to remove some verbose checks, and finally we don't need to
check isShadowHost (which contains a bunch of duplciate checks) and can
just null check ::shadow() which is equivalent.
BUG=703900
Review-Url: https://codereview.chromium.org/2782483004
Cr-Commit-Position: refs/heads/master@{#460544}
Committed: https://chromium.googlesource.com/chromium/src/+/ab0448c6ce0471b98a8a7538a1a07377e41ff0bd
Patch Set 1 #
Messages
Total messages: 16 (12 generated)
|
|||||||||||||||||||