| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index c69348e34641b001dad546df2a175dd3c422cf6d..ada8a53f45150c75376f2134ec8230477c070455 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -1819,13 +1819,13 @@ CustomElementDefinition* Element::customElementDefinition() const
|
| return nullptr;
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<ShadowRoot> Element::createShadowRoot(ScriptState* scriptState, ExceptionState& exceptionState)
|
| +PassRefPtrWillBeRawPtr<ShadowRoot> Element::createShadowRoot(const ScriptState* scriptState, ExceptionState& exceptionState)
|
| {
|
| OriginsUsingFeatures::count(scriptState, document(), OriginsUsingFeatures::Feature::ElementCreateShadowRoot);
|
| return createShadowRoot(exceptionState);
|
| }
|
|
|
| -PassRefPtrWillBeRawPtr<ShadowRoot> Element::createShadowRoot(ScriptState* scriptState, ShadowRootInit& shadowRootInitDict, ExceptionState& exceptionState)
|
| +PassRefPtrWillBeRawPtr<ShadowRoot> Element::createShadowRoot(const ScriptState* scriptState, const ShadowRootInit& shadowRootInitDict, ExceptionState& exceptionState)
|
| {
|
| ASSERT(RuntimeEnabledFeatures::createShadowRootWithParameterEnabled());
|
| UseCounter::count(document(), UseCounter::ElementCreateShadowRootWithParameter);
|
|
|