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

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

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests Created 5 years, 10 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 | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/testing/Internals.cpp
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
index 153b217831aee113558704aaac20010da6033aa9..d7660f7e23f465dbdfd615f0d8232b9421c083bd 100644
--- a/Source/core/testing/Internals.cpp
+++ b/Source/core/testing/Internals.cpp
@@ -532,10 +532,10 @@ PassRefPtrWillBeRawPtr<CSSStyleDeclaration> Internals::computedStyleIncludingVis
return CSSComputedStyleDeclaration::create(node, allowVisitedStyle);
}
-PassRefPtrWillBeRawPtr<ShadowRoot> Internals::createUserAgentShadowRoot(Element* host)
+PassRefPtrWillBeRawPtr<ShadowRoot> Internals::createClosedShadowRoot(Element* host)
{
ASSERT(host);
- return PassRefPtrWillBeRawPtr<ShadowRoot>(host->ensureUserAgentShadowRoot());
+ return PassRefPtrWillBeRawPtr<ShadowRoot>(host->ensureClosedShadowRoot());
}
ShadowRoot* Internals::shadowRoot(Element* host)
@@ -581,10 +581,10 @@ String Internals::shadowRootType(const Node* root, ExceptionState& exceptionStat
}
switch (toShadowRoot(root)->type()) {
- case ShadowRoot::UserAgentShadowRoot:
- return String("UserAgentShadowRoot");
- case ShadowRoot::AuthorShadowRoot:
- return String("AuthorShadowRoot");
+ case ShadowRoot::ClosedShadowRoot:
+ return String("ClosedShadowRoot");
+ case ShadowRoot::OpenShadowRoot:
+ return String("OpenShadowRoot");
default:
ASSERT_NOT_REACHED();
return String("Unknown");
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698