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

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

Issue 1108993006: Make SelectorChecker::tagMatches internal to the SelectorChecker (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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 | Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/SelectorChecker.h
diff --git a/Source/core/css/SelectorChecker.h b/Source/core/css/SelectorChecker.h
index 2220e16d86cb4e4184ee966696cde58da50a0008..d287107f301e91ef826c4797f008d0ccf6887260 100644
--- a/Source/core/css/SelectorChecker.h
+++ b/Source/core/css/SelectorChecker.h
@@ -104,7 +104,6 @@ public:
template<typename SiblingTraversalStrategy>
bool checkOne(const SelectorCheckingContext&, const SiblingTraversalStrategy&, unsigned* specificity = 0) const;
- static bool tagMatches(const Element&, const QualifiedName&);
static bool matchesFocusPseudoClass(const Element&);
private:
@@ -128,17 +127,6 @@ private:
Mode m_mode;
};
-inline bool SelectorChecker::tagMatches(const Element& element, const QualifiedName& tagQName)
-{
- if (tagQName == anyQName())
- return true;
- const AtomicString& localName = tagQName.localName();
- if (localName != starAtom && localName != element.localName())
- return false;
- const AtomicString& namespaceURI = tagQName.namespaceURI();
- return namespaceURI == starAtom || namespaceURI == element.namespaceURI();
-}
-
}
#endif
« no previous file with comments | « no previous file | Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698