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

Unified Diff: Source/core/testing/Internals.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/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 3927f3208e95baf11d350283c9eaf0a3fb7db298..c8fbd4d511cbbb8bdd910920a688fc0fa3390b37 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -396,16 +396,6 @@ bool Internals::hasSelectorForAttributeInShadow(Element* host, const AtomicStrin
return host->shadow()->ensureSelectFeatureSet().hasSelectorForAttribute(attributeName);
}
-bool Internals::hasSelectorForPseudoClassInShadow(Element* host, const String& pseudoClass, ExceptionState& exceptionState)
-{
- ASSERT(host);
- if (!host->shadow()) {
- exceptionState.throwDOMException(InvalidAccessError, "The host element does not have a shadow.");
- return 0;
- }
- return host->shadow()->ensureSelectFeatureSet().hasSelectorForPseudoType(CSSSelector::parsePseudoType(AtomicString(pseudoClass), false));
-}
-
unsigned short Internals::compareTreeScopePosition(const Node* node1, const Node* node2, ExceptionState& exceptionState) const
{
ASSERT(node1 && node2);

Powered by Google App Engine
This is Rietveld 408576698