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

Unified Diff: Source/core/html/HTMLDetailsElement.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/html/HTMLDetailsElement.h ('k') | Source/core/html/HTMLEmbedElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLDetailsElement.cpp
diff --git a/Source/core/html/HTMLDetailsElement.cpp b/Source/core/html/HTMLDetailsElement.cpp
index 97a67dc77ed7023c439ae735e0375cd13c08af8a..dfa8ff0b175f10504cc99a48f17e98975371dc32 100644
--- a/Source/core/html/HTMLDetailsElement.cpp
+++ b/Source/core/html/HTMLDetailsElement.cpp
@@ -52,7 +52,7 @@ static DetailsEventSender& detailsToggleEventSender()
PassRefPtrWillBeRawPtr<HTMLDetailsElement> HTMLDetailsElement::create(Document& document)
{
RefPtrWillBeRawPtr<HTMLDetailsElement> details = adoptRefWillBeNoop(new HTMLDetailsElement(document));
- details->ensureUserAgentShadowRoot();
+ details->ensureClosedShadowRoot();
return details.release();
}
@@ -80,7 +80,7 @@ LayoutObject* HTMLDetailsElement::createRenderer(const LayoutStyle&)
return new RenderBlockFlow(this);
}
-void HTMLDetailsElement::didAddUserAgentShadowRoot(ShadowRoot& root)
+void HTMLDetailsElement::didAddClosedShadowRoot(ShadowRoot& root)
{
DEFINE_STATIC_LOCAL(const AtomicString, summarySelector, ("summary:first-of-type", AtomicString::ConstructFromLiteral));
@@ -105,7 +105,7 @@ Element* HTMLDetailsElement::findMainSummary() const
if (HTMLSummaryElement* summary = Traversal<HTMLSummaryElement>::firstChild(*this))
return summary;
- HTMLContentElement* content = toHTMLContentElement(userAgentShadowRoot()->firstChild());
+ HTMLContentElement* content = toHTMLContentElement(closedShadowRoot()->firstChild());
ASSERT(content->firstChild() && isHTMLSummaryElement(*content->firstChild()));
return toElement(content->firstChild());
}
@@ -122,7 +122,7 @@ void HTMLDetailsElement::parseAttribute(const QualifiedName& name, const AtomicS
detailsToggleEventSender().cancelEvent(this);
detailsToggleEventSender().dispatchEventSoon(this);
- Element* content = ensureUserAgentShadowRoot().getElementById(ShadowElementNames::detailsContent());
+ Element* content = ensureClosedShadowRoot().getElementById(ShadowElementNames::detailsContent());
ASSERT(content);
if (m_isOpen)
content->removeInlineStyleProperty(CSSPropertyDisplay);
« no previous file with comments | « Source/core/html/HTMLDetailsElement.h ('k') | Source/core/html/HTMLEmbedElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698