Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 6cffdfffd94cedcf11e41510ef3ce289e93b8e6b..24c4d5748213346e590b17c674f2c376a1a3550a 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -84,6 +84,7 @@ |
#include "core/frame/FrameView.h" |
#include "core/frame/LocalDOMWindow.h" |
#include "core/frame/LocalFrame.h" |
+#include "core/frame/OriginsUsingFeatures.h" |
#include "core/frame/PinchViewport.h" |
#include "core/frame/ScrollToOptions.h" |
#include "core/frame/Settings.h" |
@@ -1771,6 +1772,12 @@ CustomElementDefinition* Element::customElementDefinition() const |
return nullptr; |
} |
+PassRefPtrWillBeRawPtr<ShadowRoot> Element::createShadowRoot(ScriptState* scriptState, ExceptionState& exceptionState) |
+{ |
+ OriginsUsingFeatures::count(scriptState, document(), OriginsUsingFeatures::Feature::ElementCreateShadowRoot); |
+ return createShadowRoot(exceptionState); |
+} |
+ |
PassRefPtrWillBeRawPtr<ShadowRoot> Element::createShadowRoot(ExceptionState& exceptionState) |
{ |
if (alwaysCreateClosedShadowRoot()) |