Index: Source/core/html/HTMLScriptElement.cpp |
diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp |
index ce1adaf24a73af049ae6b02e1f8078af95126f51..444458a962095c72ab677c152d47e3040b97562e 100644 |
--- a/Source/core/html/HTMLScriptElement.cpp |
+++ b/Source/core/html/HTMLScriptElement.cpp |
@@ -25,6 +25,7 @@ |
#include "bindings/v8/ExceptionStatePlaceholder.h" |
#include "bindings/v8/ScriptEventListener.h" |
+#include "bindings/v8/V8DOMActivityLogger.h" |
#include "core/HTMLNames.h" |
#include "core/dom/Attribute.h" |
#include "core/dom/Document.h" |
@@ -81,6 +82,15 @@ void HTMLScriptElement::parseAttribute(const QualifiedName& name, const AtomicSt |
Node::InsertionNotificationRequest HTMLScriptElement::insertedInto(ContainerNode* insertionPoint) |
{ |
+ if (insertionPoint->inDocument()) { |
+ V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld(); |
+ if (activityLogger) { |
+ Vector<String> argv; |
+ argv.append("script"); |
+ argv.append(fastGetAttribute(srcAttr)); |
+ activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()); |
+ } |
+ } |
HTMLElement::insertedInto(insertionPoint); |
return InsertionShouldCallDidNotifySubtreeInsertions; |
} |