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

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

Issue 2588103003: Rename blink::SelectorChecker::Match enum type to MatchStatus. (Closed)
Patch Set: Created 4 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 | « no previous file | 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 643ba59e6bf44d5a7709bd75782e9d04f3bb8c18..a188b23b44f78cae0761791cadfffd7cdc946700 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.h
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.h
@@ -131,22 +131,24 @@ class SelectorChecker {
private:
bool checkOne(const SelectorCheckingContext&, MatchResult&) const;
- enum Match {
+ enum MatchStatus {
SelectorMatches,
SelectorFailsLocally,
SelectorFailsAllSiblings,
SelectorFailsCompletely
};
- Match matchSelector(const SelectorCheckingContext&, MatchResult&) const;
- Match matchForSubSelector(const SelectorCheckingContext&, MatchResult&) const;
- Match matchForRelation(const SelectorCheckingContext&, MatchResult&) const;
- Match matchForPseudoContent(const SelectorCheckingContext&,
- const Element&,
- MatchResult&) const;
- Match matchForPseudoShadow(const SelectorCheckingContext&,
- const ContainerNode*,
- MatchResult&) const;
+ MatchStatus matchSelector(const SelectorCheckingContext&, MatchResult&) const;
+ MatchStatus matchForSubSelector(const SelectorCheckingContext&,
+ MatchResult&) const;
+ MatchStatus matchForRelation(const SelectorCheckingContext&,
+ MatchResult&) const;
+ MatchStatus matchForPseudoContent(const SelectorCheckingContext&,
+ const Element&,
+ MatchResult&) const;
+ MatchStatus matchForPseudoShadow(const SelectorCheckingContext&,
+ const ContainerNode*,
+ MatchResult&) const;
bool checkPseudoClass(const SelectorCheckingContext&, MatchResult&) const;
bool checkPseudoElement(const SelectorCheckingContext&, MatchResult&) const;
bool checkScrollbarPseudoClass(const SelectorCheckingContext&,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698