Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index c68ca92740f82b8baeb5aa3286c2d8f23f9fddf3..98fd74710581490e8ade3eb59c5e475dd30ee263 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -125,6 +125,7 @@ |
#include "core/frame/LocalFrame.h" |
#include "core/frame/PinchViewport.h" |
#include "core/frame/Settings.h" |
+#include "core/frame/UseByOriginCounter.h" |
#include "core/frame/csp/ContentSecurityPolicy.h" |
#include "core/html/DocumentNameCollection.h" |
#include "core/html/HTMLAllCollection.h" |
@@ -813,6 +814,8 @@ PassRefPtrWillBeRawPtr<Element> Document::createElementNS(const AtomicString& na |
ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicString& name, const ElementRegistrationOptions& options, ExceptionState& exceptionState, CustomElement::NameSet validNames) |
{ |
+ UseByOriginCounter::count(scriptState, *this, UseByOriginCounter::Feature::DocumentRegisterElement); |
+ |
if (!registrationContext()) { |
exceptionState.throwDOMException(NotSupportedError, "No element registration context is available."); |
return ScriptValue(); |