Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1826)

Unified Diff: third_party/WebKit/Source/core/dom/SelectorQuery.h

Issue 2791473002: Reuse selectorListMatches for all loops over the selectors in SelectorQuery. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/SelectorQuery.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/SelectorQuery.h
diff --git a/third_party/WebKit/Source/core/dom/SelectorQuery.h b/third_party/WebKit/Source/core/dom/SelectorQuery.h
index d8f3c7308ebb78f3714cf8315afe26c31ced619e..e378c49453b6191d3c2b2d77bb0617a23f1c6620 100644
--- a/third_party/WebKit/Source/core/dom/SelectorQuery.h
+++ b/third_party/WebKit/Source/core/dom/SelectorQuery.h
@@ -78,10 +78,6 @@ class CORE_EXPORT SelectorQuery {
ContainerNode& rootNode,
typename SelectorQueryTrait::OutputType&) const;
template <typename SelectorQueryTrait>
- bool selectorListMatches(ContainerNode& rootNode,
- Element&,
- typename SelectorQueryTrait::OutputType&) const;
- template <typename SelectorQueryTrait>
void executeSlow(ContainerNode& rootNode,
typename SelectorQueryTrait::OutputType&) const;
template <typename SelectorQueryTrait>
@@ -92,6 +88,8 @@ class CORE_EXPORT SelectorQuery {
void execute(ContainerNode& rootNode,
typename SelectorQueryTrait::OutputType&) const;
+ bool selectorListMatches(ContainerNode& rootNode, Element&) const;
+
CSSSelectorList m_selectorList;
// Contains the list of CSSSelector's to match, but without ones that could
// never match like pseudo elements, div::before. This can be empty, while
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/SelectorQuery.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698