Index: Source/core/css/SelectorChecker.h |
diff --git a/Source/core/css/SelectorChecker.h b/Source/core/css/SelectorChecker.h |
index 0e3357b94bab90fbc4b3090e64e89f2e16985189..84befe7abbaa7290cc741a727451b15a64e72b5a 100644 |
--- a/Source/core/css/SelectorChecker.h |
+++ b/Source/core/css/SelectorChecker.h |
@@ -112,7 +112,6 @@ public: |
static bool matchesFocusPseudoClass(const Element&); |
static bool matchesSpatialNavigationFocusPseudoClass(const Element&); |
static bool matchesListBoxPseudoClass(const Element&); |
- static bool checkExactAttribute(const Element&, const QualifiedName& selectorAttributeName, const StringImpl* value); |
enum LinkMatchMask { MatchLink = 1, MatchVisited = 2, MatchAll = MatchLink | MatchVisited }; |
static unsigned determineLinkMatchType(const CSSSelector&); |
@@ -165,15 +164,6 @@ inline bool SelectorChecker::tagMatches(const Element& element, const QualifiedN |
return namespaceURI == starAtom || namespaceURI == element.namespaceURI(); |
} |
-inline bool SelectorChecker::checkExactAttribute(const Element& element, const QualifiedName& selectorAttributeName, const StringImpl* value) |
-{ |
- for (const auto& attribute : element.attributesWithoutUpdate()) { |
- if (attribute.matches(selectorAttributeName) && (!value || attribute.value().impl() == value)) |
- return true; |
- } |
- return false; |
-} |
- |
inline bool SelectorChecker::isHostInItsShadowTree(const Element& element, const ContainerNode* scope) |
{ |
return scope && scope->isInShadowTree() && scope->shadowHost() == element; |