| Index: Source/core/html/HTMLButtonElement.cpp
|
| diff --git a/Source/core/html/HTMLButtonElement.cpp b/Source/core/html/HTMLButtonElement.cpp
|
| index 55f7defa1a4b3f46f8b212caf5aebcc284713745..7051b4a4aa282f413a0e24512906bb98a577abf2 100644
|
| --- a/Source/core/html/HTMLButtonElement.cpp
|
| +++ b/Source/core/html/HTMLButtonElement.cpp
|
| @@ -26,6 +26,7 @@
|
| #include "config.h"
|
| #include "core/html/HTMLButtonElement.h"
|
|
|
| +#include "bindings/v8/V8DOMActivityLogger.h"
|
| #include "core/HTMLNames.h"
|
| #include "core/dom/Attribute.h"
|
| #include "core/events/KeyboardEvent.h"
|
| @@ -213,4 +214,20 @@ bool HTMLButtonElement::supportsAutofocus() const
|
| return true;
|
| }
|
|
|
| +Node::InsertionNotificationRequest HTMLButtonElement::insertedInto(ContainerNode* insertionPoint)
|
| +{
|
| + if (insertionPoint->inDocument()) {
|
| + V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld();
|
| + if (activityLogger) {
|
| + Vector<String> argv;
|
| + argv.append("button");
|
| + argv.append(fastGetAttribute(typeAttr));
|
| + argv.append(fastGetAttribute(formmethodAttr));
|
| + argv.append(fastGetAttribute(formactionAttr));
|
| + activityLogger->logEvent("blinkAddElement", argv.size(), argv.data());
|
| + }
|
| + }
|
| + return HTMLFormControlElement::insertedInto(insertionPoint);
|
| +}
|
| +
|
| } // namespace
|
|
|