Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: Source/core/html/HTMLFormElement.cpp

Issue 355363002: Revert of Adds AL logging for Blink core events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: manually fix conflict in Document.idl Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLDocument.idl ('k') | Source/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv ed.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 10 matching lines...) Expand all
21 * Boston, MA 02110-1301, USA. 21 * Boston, MA 02110-1301, USA.
22 * 22 *
23 */ 23 */
24 24
25 #include "config.h" 25 #include "config.h"
26 #include "core/html/HTMLFormElement.h" 26 #include "core/html/HTMLFormElement.h"
27 27
28 #include <limits> 28 #include <limits>
29 #include "bindings/v8/ScriptController.h" 29 #include "bindings/v8/ScriptController.h"
30 #include "bindings/v8/ScriptEventListener.h" 30 #include "bindings/v8/ScriptEventListener.h"
31 #include "bindings/v8/V8DOMActivityLogger.h"
32 #include "core/HTMLNames.h" 31 #include "core/HTMLNames.h"
33 #include "core/dom/Attribute.h" 32 #include "core/dom/Attribute.h"
34 #include "core/dom/Document.h" 33 #include "core/dom/Document.h"
35 #include "core/dom/ElementTraversal.h" 34 #include "core/dom/ElementTraversal.h"
36 #include "core/dom/IdTargetObserverRegistry.h" 35 #include "core/dom/IdTargetObserverRegistry.h"
37 #include "core/events/AutocompleteErrorEvent.h" 36 #include "core/events/AutocompleteErrorEvent.h"
38 #include "core/events/Event.h" 37 #include "core/events/Event.h"
39 #include "core/events/GenericEventQueue.h" 38 #include "core/events/GenericEventQueue.h"
40 #include "core/events/ScopedEventQueue.h" 39 #include "core/events/ScopedEventQueue.h"
41 #include "core/frame/LocalDOMWindow.h" 40 #include "core/frame/LocalDOMWindow.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool formIsTablePart = display == TABLE || display == INLINE_TABLE || displa y == TABLE_ROW_GROUP 129 bool formIsTablePart = display == TABLE || display == INLINE_TABLE || displa y == TABLE_ROW_GROUP
131 || display == TABLE_HEADER_GROUP || display == TABLE_FOOTER_GROUP || dis play == TABLE_ROW 130 || display == TABLE_HEADER_GROUP || display == TABLE_FOOTER_GROUP || dis play == TABLE_ROW
132 || display == TABLE_COLUMN_GROUP || display == TABLE_COLUMN || display = = TABLE_CELL 131 || display == TABLE_COLUMN_GROUP || display == TABLE_COLUMN || display = = TABLE_CELL
133 || display == TABLE_CAPTION; 132 || display == TABLE_CAPTION;
134 133
135 return formIsTablePart; 134 return formIsTablePart;
136 } 135 }
137 136
138 Node::InsertionNotificationRequest HTMLFormElement::insertedInto(ContainerNode* insertionPoint) 137 Node::InsertionNotificationRequest HTMLFormElement::insertedInto(ContainerNode* insertionPoint)
139 { 138 {
140 if (insertionPoint->inDocument()) {
141 V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivi tyLoggerIfIsolatedWorld();
142 if (activityLogger) {
143 Vector<String> argv;
144 argv.append("form");
145 argv.append(fastGetAttribute(methodAttr));
146 argv.append(fastGetAttribute(actionAttr));
147 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data() );
148 }
149 }
150 HTMLElement::insertedInto(insertionPoint); 139 HTMLElement::insertedInto(insertionPoint);
151 if (insertionPoint->inDocument()) 140 if (insertionPoint->inDocument())
152 this->document().didAssociateFormControl(this); 141 this->document().didAssociateFormControl(this);
153 return InsertionDone; 142 return InsertionDone;
154 } 143 }
155 144
156 template<class T> 145 template<class T>
157 void notifyFormRemovedFromTree(const T& elements, Node& root) 146 void notifyFormRemovedFromTree(const T& elements, Node& root)
158 { 147 {
159 size_t size = elements.size(); 148 size_t size = elements.size();
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 } 799 }
811 800
812 void HTMLFormElement::setDemoted(bool demoted) 801 void HTMLFormElement::setDemoted(bool demoted)
813 { 802 {
814 if (demoted) 803 if (demoted)
815 UseCounter::count(document(), UseCounter::DemotedFormElement); 804 UseCounter::count(document(), UseCounter::DemotedFormElement);
816 m_wasDemoted = demoted; 805 m_wasDemoted = demoted;
817 } 806 }
818 807
819 } // namespace 808 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLDocument.idl ('k') | Source/core/html/HTMLIFrameElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698