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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2647843002: Switch Shadow DOM V0 <content> FeatureSet tests to SimTest. (Closed)
Patch Set: Created 3 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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index faf7bfe8523ea355cc4011d27b98600095f5f033..e76bedd8ae9f8dfb560816a0866cd90bb70f1e70 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -475,49 +475,6 @@ Node* Internals::parentTreeScope(Node* node) {
return parentTreeScope ? &parentTreeScope->rootNode() : 0;
}
-bool Internals::hasSelectorForIdInShadow(Element* host,
- const AtomicString& idValue,
- ExceptionState& exceptionState) {
- DCHECK(host);
- if (!host->shadow() || host->shadow()->isV1()) {
- exceptionState.throwDOMException(
- InvalidAccessError, "The host element does not have a v0 shadow.");
- return false;
- }
-
- return host->shadow()->v0().ensureSelectFeatureSet().hasSelectorForId(
- idValue);
-}
-
-bool Internals::hasSelectorForClassInShadow(Element* host,
- const AtomicString& className,
- ExceptionState& exceptionState) {
- DCHECK(host);
- if (!host->shadow() || host->shadow()->isV1()) {
- exceptionState.throwDOMException(
- InvalidAccessError, "The host element does not have a v0 shadow.");
- return false;
- }
-
- return host->shadow()->v0().ensureSelectFeatureSet().hasSelectorForClass(
- className);
-}
-
-bool Internals::hasSelectorForAttributeInShadow(
- Element* host,
- const AtomicString& attributeName,
- ExceptionState& exceptionState) {
- DCHECK(host);
- if (!host->shadow() || host->shadow()->isV1()) {
- exceptionState.throwDOMException(
- InvalidAccessError, "The host element does not have a v0 shadow.");
- return false;
- }
-
- return host->shadow()->v0().ensureSelectFeatureSet().hasSelectorForAttribute(
- attributeName);
-}
-
unsigned short Internals::compareTreeScopePosition(
const Node* node1,
const Node* node2,

Powered by Google App Engine
This is Rietveld 408576698