| Index: Source/core/html/HTMLDetailsElement.cpp
|
| diff --git a/Source/core/html/HTMLDetailsElement.cpp b/Source/core/html/HTMLDetailsElement.cpp
|
| index 58043e3589c110dd425de70242b3b35394cfc837..ec4d7699538c5bd77d82ea0593ed5a656f3a9d54 100644
|
| --- a/Source/core/html/HTMLDetailsElement.cpp
|
| +++ b/Source/core/html/HTMLDetailsElement.cpp
|
| @@ -54,7 +54,7 @@ RenderObject* HTMLDetailsElement::createRenderer(RenderStyle*)
|
| return new RenderBlockFlow(this);
|
| }
|
|
|
| -void HTMLDetailsElement::didAddUserAgentShadowRoot(ShadowRoot* root)
|
| +void HTMLDetailsElement::didAddUserAgentShadowRoot(ShadowRoot& root)
|
| {
|
| DEFINE_STATIC_LOCAL(AtomicString, summarySelector, ("summary:first-of-type", AtomicString::ConstructFromLiteral));
|
|
|
| @@ -65,8 +65,8 @@ void HTMLDetailsElement::didAddUserAgentShadowRoot(ShadowRoot* root)
|
| content->setAttribute(selectAttr, summarySelector);
|
| content->appendChild(defaultSummary);
|
|
|
| - root->appendChild(content);
|
| - root->appendChild(HTMLContentElement::create(document()));
|
| + root.appendChild(content);
|
| + root.appendChild(HTMLContentElement::create(document()));
|
| }
|
|
|
| Element* HTMLDetailsElement::findMainSummary() const
|
|
|