| Index: Source/core/html/HTMLScriptElement.cpp
|
| diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp
|
| index ce1adaf24a73af049ae6b02e1f8078af95126f51..8deb9007e3de3b606455e5f9434dda70e21fc0eb 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->isInTreeScope()) {
|
| + V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld();
|
| + if (activityLogger) {
|
| + Vector<String> argv;
|
| + argv.append("script");
|
| + argv.append(fastGetAttribute(srcAttr));
|
| + activityLogger->logEvent("blinkAddElement", 2, argv.data());
|
| + }
|
| + }
|
| HTMLElement::insertedInto(insertionPoint);
|
| return InsertionShouldCallDidNotifySubtreeInsertions;
|
| }
|
|
|