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

Unified Diff: Source/core/svg/SVGUseElement.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/svg/SVGElement.cpp ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGUseElement.cpp
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
index a24cc0902df75410e7fa94d1d6b4ff22a1d27264..1784abb0ba07e4f4593cd497731e69928ee59ae8 100644
--- a/Source/core/svg/SVGUseElement.cpp
+++ b/Source/core/svg/SVGUseElement.cpp
@@ -67,7 +67,7 @@ PassRefPtrWillBeRawPtr<SVGUseElement> SVGUseElement::create(Document& document)
{
// Always build a user agent #shadow-root for SVGUseElement.
RefPtrWillBeRawPtr<SVGUseElement> use = adoptRefWillBeNoop(new SVGUseElement(document));
- use->ensureUserAgentShadowRoot();
+ use->ensureClosedShadowRoot();
return use.release();
}
@@ -329,7 +329,7 @@ void SVGUseElement::clearResourceReferences()
m_targetElementInstance = nullptr;
// FIXME: We should try to optimize this, to at least allow partial reclones.
- if (ShadowRoot* shadowTreeRootElement = userAgentShadowRoot())
+ if (ShadowRoot* shadowTreeRootElement = closedShadowRoot())
shadowTreeRootElement->removeChildren(OmitSubtreeModifiedEvent);
m_needsShadowTreeRecreation = false;
@@ -404,7 +404,7 @@ void SVGUseElement::buildShadowAndInstanceTree(SVGElement* target)
// Set up root SVG element in shadow tree.
RefPtrWillBeRawPtr<Element> newChild = target->cloneElementWithoutChildren();
m_targetElementInstance = toSVGElement(newChild.get());
- ShadowRoot* shadowTreeRootElement = userAgentShadowRoot();
+ ShadowRoot* shadowTreeRootElement = closedShadowRoot();
shadowTreeRootElement->appendChild(newChild.release());
// Clone the target subtree into the shadow tree, not handling <use> and <symbol> yet.
@@ -464,7 +464,7 @@ void SVGUseElement::toClipPath(Path& path)
{
ASSERT(path.isEmpty());
- Node* n = userAgentShadowRoot()->firstChild();
+ Node* n = closedShadowRoot()->firstChild();
if (!n || !n->isSVGElement())
return;
SVGElement& element = toSVGElement(*n);
@@ -485,7 +485,7 @@ void SVGUseElement::toClipPath(Path& path)
LayoutObject* SVGUseElement::rendererClipChild() const
{
- if (Node* n = userAgentShadowRoot()->firstChild()) {
+ if (Node* n = closedShadowRoot()->firstChild()) {
if (n->isSVGElement() && isDirectReference(toSVGElement(*n)))
return n->renderer();
}
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | Source/core/testing/Internals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698