| 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);
|
|
|