Index: Source/core/html/HTMLAnchorElement.cpp |
diff --git a/Source/core/html/HTMLAnchorElement.cpp b/Source/core/html/HTMLAnchorElement.cpp |
index c3fcb72933e5eb0d2eb6b70839c38cdd0f4ff0ad..6eb2d3475014bc989fc6ea938aba0d1a1c4a1da4 100644 |
--- a/Source/core/html/HTMLAnchorElement.cpp |
+++ b/Source/core/html/HTMLAnchorElement.cpp |
@@ -24,6 +24,7 @@ |
#include "config.h" |
#include "core/html/HTMLAnchorElement.h" |
+#include "bindings/v8/V8DOMActivityLogger.h" |
#include "core/dom/Attribute.h" |
#include "core/editing/FrameSelection.h" |
#include "core/events/KeyboardEvent.h" |
@@ -357,4 +358,18 @@ bool HTMLAnchorElement::isInteractiveContent() const |
return isLink(); |
} |
+Node::InsertionNotificationRequest HTMLAnchorElement::insertedInto(ContainerNode* insertionPoint) |
+{ |
+ if (insertionPoint->isInTreeScope()) { |
haraken
2014/06/23 15:49:42
Do you want to use isInTreeScope() or inDocument()
pmarch
2014/06/23 16:31:00
I am not familiar to how the shadow dom is used so
|
+ V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld(); |
+ if (activityLogger) { |
+ Vector<String> argv; |
+ argv.append("a"); |
+ argv.append(fastGetAttribute(hrefAttr)); |
+ activityLogger->logEvent("blinkAddElement", 2, argv.data()); |
haraken
2014/06/23 15:49:42
2 => argv.length()
pmarch
2014/06/23 16:31:00
Done.
|
+ } |
+ } |
+ return HTMLElement::insertedInto(insertionPoint); |
+} |
+ |
} |