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

Unified Diff: Source/core/dom/SelectorQuery.cpp

Issue 1129673002: Remove support for pseudo classes in <content select>. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix more tests. Created 5 years, 7 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: Source/core/dom/SelectorQuery.cpp
diff --git a/Source/core/dom/SelectorQuery.cpp b/Source/core/dom/SelectorQuery.cpp
index 6a5d428934d4258c09430f6dfa83f20f63bad1f4..af3bc282f14323a4425cf408e34e1404176059e0 100644
--- a/Source/core/dom/SelectorQuery.cpp
+++ b/Source/core/dom/SelectorQuery.cpp
@@ -29,7 +29,6 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/css/SelectorChecker.h"
-#include "core/css/SiblingTraversalStrategies.h"
#include "core/css/parser/CSSParser.h"
#include "core/dom/Document.h"
#include "core/dom/ElementTraversal.h"
@@ -123,7 +122,7 @@ inline bool SelectorDataList::selectorMatches(const CSSSelector& selector, Eleme
selectorCheckingContext.scope = !rootNode.isDocumentNode() ? &rootNode : 0;
if (selectorCheckingContext.scope)
selectorCheckingContext.scopeContainsLastMatchedElement = true;
- return selectorChecker.match(selectorCheckingContext, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches;
+ return selectorChecker.match(selectorCheckingContext) == SelectorChecker::SelectorMatches;
}
bool SelectorDataList::matches(Element& targetElement) const

Powered by Google App Engine
This is Rietveld 408576698