Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 2607f8068404cfcac097b193fdb630258c627a04..7e842088582a0b1476d94c2c57863d1d610d46c2 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()) |