OLD | NEW |
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, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) | 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. | 10 * Copyright (C) 2012 Samsung Electronics. All rights reserved. |
(...skipping 14 matching lines...) Expand all Loading... |
25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
26 * | 26 * |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/html/HTMLInputElement.h" | 30 #include "core/html/HTMLInputElement.h" |
31 | 31 |
32 #include "bindings/v8/ExceptionMessages.h" | 32 #include "bindings/v8/ExceptionMessages.h" |
33 #include "bindings/v8/ExceptionState.h" | 33 #include "bindings/v8/ExceptionState.h" |
34 #include "bindings/v8/ScriptEventListener.h" | 34 #include "bindings/v8/ScriptEventListener.h" |
35 #include "bindings/v8/V8DOMActivityLogger.h" | |
36 #include "core/CSSPropertyNames.h" | 35 #include "core/CSSPropertyNames.h" |
37 #include "core/HTMLNames.h" | 36 #include "core/HTMLNames.h" |
38 #include "core/accessibility/AXObjectCache.h" | 37 #include "core/accessibility/AXObjectCache.h" |
39 #include "core/dom/Document.h" | 38 #include "core/dom/Document.h" |
40 #include "core/dom/ExceptionCode.h" | 39 #include "core/dom/ExceptionCode.h" |
41 #include "core/dom/IdTargetObserver.h" | 40 #include "core/dom/IdTargetObserver.h" |
42 #include "core/dom/shadow/ElementShadow.h" | 41 #include "core/dom/shadow/ElementShadow.h" |
43 #include "core/dom/shadow/InsertionPoint.h" | 42 #include "core/dom/shadow/InsertionPoint.h" |
44 #include "core/dom/shadow/ShadowRoot.h" | 43 #include "core/dom/shadow/ShadowRoot.h" |
45 #include "core/editing/FrameSelection.h" | 44 #include "core/editing/FrameSelection.h" |
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1406 } | 1405 } |
1407 | 1406 |
1408 void HTMLInputElement::didChangeForm() | 1407 void HTMLInputElement::didChangeForm() |
1409 { | 1408 { |
1410 HTMLTextFormControlElement::didChangeForm(); | 1409 HTMLTextFormControlElement::didChangeForm(); |
1411 addToRadioButtonGroup(); | 1410 addToRadioButtonGroup(); |
1412 } | 1411 } |
1413 | 1412 |
1414 Node::InsertionNotificationRequest HTMLInputElement::insertedInto(ContainerNode*
insertionPoint) | 1413 Node::InsertionNotificationRequest HTMLInputElement::insertedInto(ContainerNode*
insertionPoint) |
1415 { | 1414 { |
1416 if (insertionPoint->inDocument()) { | |
1417 V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivi
tyLoggerIfIsolatedWorld(); | |
1418 if (activityLogger) { | |
1419 Vector<String> argv; | |
1420 argv.append("input"); | |
1421 argv.append(fastGetAttribute(typeAttr)); | |
1422 argv.append(fastGetAttribute(formactionAttr)); | |
1423 activityLogger->logEvent("blinkAddElement", argv.size(), argv.data()
); | |
1424 } | |
1425 } | |
1426 HTMLTextFormControlElement::insertedInto(insertionPoint); | 1415 HTMLTextFormControlElement::insertedInto(insertionPoint); |
1427 if (insertionPoint->inDocument() && !form()) | 1416 if (insertionPoint->inDocument() && !form()) |
1428 addToRadioButtonGroup(); | 1417 addToRadioButtonGroup(); |
1429 resetListAttributeTargetObserver(); | 1418 resetListAttributeTargetObserver(); |
1430 return InsertionDone; | 1419 return InsertionDone; |
1431 } | 1420 } |
1432 | 1421 |
1433 void HTMLInputElement::removedFrom(ContainerNode* insertionPoint) | 1422 void HTMLInputElement::removedFrom(ContainerNode* insertionPoint) |
1434 { | 1423 { |
1435 if (insertionPoint->inDocument() && !form()) | 1424 if (insertionPoint->inDocument() && !form()) |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1869 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); | 1858 return m_inputTypeView->customStyleForRenderer(originalStyleForRenderer()); |
1870 } | 1859 } |
1871 #endif | 1860 #endif |
1872 | 1861 |
1873 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St
ring& newValue) | 1862 bool HTMLInputElement::shouldDispatchFormControlChangeEvent(String& oldValue, St
ring& newValue) |
1874 { | 1863 { |
1875 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue)
; | 1864 return m_inputType->shouldDispatchFormControlChangeEvent(oldValue, newValue)
; |
1876 } | 1865 } |
1877 | 1866 |
1878 } // namespace | 1867 } // namespace |
OLD | NEW |