DescriptionInline SelectorQuery::executeForTraverseRoots into findTraverseRootsAndExecute.
This function is just a glorified if statement over the enum value we pass
into it. Inline the two loops into the call sites. We can also remove the
check against SelectorQueryTrait::shouldOnlyMatchFirstElement inside the loops
since the outer check ensures it's always false.
This lets us remove the MatchTraverseRootState enum. It does make the
findTraverseRootsAndExecute function bigger, but it removes a bunch of
checks in the process. Future patches will simplify further and hopefully
shrink the function.
BUG=703900
Review-Url: https://codereview.chromium.org/2786493003
Cr-Commit-Position: refs/heads/master@{#460448}
Committed: https://chromium.googlesource.com/chromium/src/+/7283eda4c582d4aa64838377970466ae6a4d2f2e
Patch Set 1 #
Total comments: 1
Messages
Total messages: 21 (17 generated)
|