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

Unified Diff: third_party/WebKit/Source/core/css/CSSSelectorList.cpp

Issue 1616423003: Fix selector namespace prefix resolution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review issues Created 4 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
Index: third_party/WebKit/Source/core/css/CSSSelectorList.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSSelectorList.cpp b/third_party/WebKit/Source/core/css/CSSSelectorList.cpp
index 83626a2d18c6d5bb2ffac4851aa402ce63eec60d..361d99bcd219bf353b2c9d8e144440cfaae9278b 100644
--- a/third_party/WebKit/Source/core/css/CSSSelectorList.cpp
+++ b/third_party/WebKit/Source/core/css/CSSSelectorList.cpp
@@ -151,16 +151,6 @@ static bool forEachSelector(const Functor& functor, const CSSSelectorList* selec
return false;
}
-bool CSSSelectorList::selectorsNeedNamespaceResolution()
-{
- return forEachSelector([](const CSSSelector& selector) -> bool {
- if (selector.match() != CSSSelector::Tag && !selector.isAttributeSelector())
- return false;
- const AtomicString& prefix = selector.isAttributeSelector() ? selector.attribute().prefix() : selector.tagQName().prefix();
- return prefix != nullAtom && prefix != emptyAtom && prefix != starAtom;
- }, this);
-}
-
bool CSSSelectorList::selectorHasContentPseudo(size_t index) const
{
return forEachTagSelector([](const CSSSelector& selector) -> bool {
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSSelectorList.h ('k') | third_party/WebKit/Source/core/css/CSSStyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698