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

Unified Diff: third_party/WebKit/Source/core/css/SelectorChecker.h

Issue 1496533003: Implement a simple version of SelectorQuery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert change to SelectorFilter.h Created 5 years 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 | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/SelectorChecker.h
diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.h b/third_party/WebKit/Source/core/css/SelectorChecker.h
index a8271836d63115bb6e6acd1840d5e70389efc8a3..8ca59a79fac0025b39aed43b5abdf2cf13ba9d58 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.h
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.h
@@ -99,8 +99,17 @@ public:
unsigned specificity;
};
- bool match(const SelectorCheckingContext&, MatchResult&) const;
- bool match(const SelectorCheckingContext&) const;
+ bool match(const SelectorCheckingContext& context, MatchResult& result) const
+ {
+ ASSERT(context.selector);
+ return matchSelector(context, result) == SelectorMatches;
+ }
+
+ bool match(const SelectorCheckingContext& context) const
+ {
+ MatchResult ignoreResult;
+ return match(context, ignoreResult);
+ }
static bool matchesFocusPseudoClass(const Element&);
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698