Index: Source/core/html/HTMLIFrameElement.cpp |
diff --git a/Source/core/html/HTMLIFrameElement.cpp b/Source/core/html/HTMLIFrameElement.cpp |
index b447e52765ac880b28b64b3b06ab87e34c7fda09..2b79f28e874a11d0bdb4f9fc184983faf942ebd4 100644 |
--- a/Source/core/html/HTMLIFrameElement.cpp |
+++ b/Source/core/html/HTMLIFrameElement.cpp |
@@ -25,6 +25,7 @@ |
#include "config.h" |
#include "core/html/HTMLIFrameElement.h" |
+#include "bindings/v8/V8DOMActivityLogger.h" |
#include "core/CSSPropertyNames.h" |
#include "core/HTMLNames.h" |
#include "core/html/HTMLDocument.h" |
@@ -100,6 +101,15 @@ RenderObject* HTMLIFrameElement::createRenderer(RenderStyle*) |
Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode* insertionPoint) |
{ |
+ if (insertionPoint->inDocument()) { |
+ V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld(); |
+ if (activityLogger) { |
+ Vector<String> argv; |
+ argv.append("iframe"); |
+ argv.append(fastGetAttribute(srcAttr)); |
+ activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()); |
+ } |
+ } |
InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(insertionPoint); |
if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertionPoint->isInShadowTree()) |
toHTMLDocument(document()).addExtraNamedItem(m_name); |