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

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

Issue 847773003: Removing dead code SelectorChecker::checkExactAttribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 | no next file » | 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 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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698