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