Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index edfd54eada77d051e155e4b2ccf06609fad6c7b5..4fa0c3c7da37eba49c5b8ed139ed3ec42fdea766 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -1688,7 +1688,7 @@ PassRefPtr<ShadowRoot> Element::createShadowRoot(ExceptionState& es) |
ensureUserAgentShadowRoot(); |
if (RuntimeEnabledFeatures::authorShadowDOMForAnyElementEnabled()) |
- return ensureShadow().addShadowRoot(this, ShadowRoot::AuthorShadowRoot); |
+ return ensureShadow().addShadowRoot(*this, ShadowRoot::AuthorShadowRoot); |
// Since some elements recreates shadow root dynamically, multiple shadow |
// subtrees won't work well in that element. Until they are fixed, we disable |
@@ -1697,7 +1697,7 @@ PassRefPtr<ShadowRoot> Element::createShadowRoot(ExceptionState& es) |
es.throwUninformativeAndGenericDOMException(HierarchyRequestError); |
return 0; |
} |
- return ensureShadow().addShadowRoot(this, ShadowRoot::AuthorShadowRoot); |
+ return ensureShadow().addShadowRoot(*this, ShadowRoot::AuthorShadowRoot); |
} |
ShadowRoot* Element::shadowRoot() const |
@@ -1731,7 +1731,7 @@ ShadowRoot* Element::ensureUserAgentShadowRoot() |
{ |
if (ShadowRoot* shadowRoot = userAgentShadowRoot()) |
return shadowRoot; |
- ShadowRoot* shadowRoot = ensureShadow().addShadowRoot(this, ShadowRoot::UserAgentShadowRoot); |
+ ShadowRoot* shadowRoot = ensureShadow().addShadowRoot(*this, ShadowRoot::UserAgentShadowRoot); |
didAddUserAgentShadowRoot(shadowRoot); |
return shadowRoot; |
} |