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 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 |
11 * version 2 of the License, or (at your option) any later version. | 11 * version 2 of the License, or (at your option) any later version. |
12 * | 12 * |
13 * This library is distributed in the hope that it will be useful, | 13 * This library is distributed in the hope that it will be useful, |
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 * Library General Public License for more details. | 16 * Library General Public License for more details. |
17 * | 17 * |
18 * You should have received a copy of the GNU Library General Public License | 18 * You should have received a copy of the GNU Library General Public License |
19 * along with this library; see the file COPYING.LIB. If not, write to | 19 * along with this library; see the file COPYING.LIB. If not, write to |
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
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 "bindings/core/v8/ScriptController.h" |
29 #include "bindings/v8/ScriptController.h" | 29 #include "bindings/core/v8/ScriptEventListener.h" |
30 #include "bindings/v8/ScriptEventListener.h" | 30 #include "bindings/core/v8/V8DOMActivityLogger.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" |
42 #include "core/frame/LocalFrame.h" | 41 #include "core/frame/LocalFrame.h" |
43 #include "core/frame/UseCounter.h" | 42 #include "core/frame/UseCounter.h" |
44 #include "core/frame/csp/ContentSecurityPolicy.h" | 43 #include "core/frame/csp/ContentSecurityPolicy.h" |
45 #include "core/html/HTMLCollection.h" | 44 #include "core/html/HTMLCollection.h" |
46 #include "core/html/HTMLDialogElement.h" | 45 #include "core/html/HTMLDialogElement.h" |
47 #include "core/html/HTMLFormControlsCollection.h" | 46 #include "core/html/HTMLFormControlsCollection.h" |
48 #include "core/html/HTMLImageElement.h" | 47 #include "core/html/HTMLImageElement.h" |
49 #include "core/html/HTMLInputElement.h" | 48 #include "core/html/HTMLInputElement.h" |
50 #include "core/html/HTMLObjectElement.h" | 49 #include "core/html/HTMLObjectElement.h" |
51 #include "core/html/RadioNodeList.h" | 50 #include "core/html/RadioNodeList.h" |
52 #include "core/html/forms/FormController.h" | 51 #include "core/html/forms/FormController.h" |
53 #include "core/loader/FrameLoader.h" | 52 #include "core/loader/FrameLoader.h" |
54 #include "core/loader/FrameLoaderClient.h" | 53 #include "core/loader/FrameLoaderClient.h" |
55 #include "core/loader/MixedContentChecker.h" | 54 #include "core/loader/MixedContentChecker.h" |
56 #include "core/rendering/RenderTextControl.h" | 55 #include "core/rendering/RenderTextControl.h" |
57 #include "platform/UserGestureIndicator.h" | 56 #include "platform/UserGestureIndicator.h" |
58 #include "wtf/text/AtomicString.h" | 57 #include "wtf/text/AtomicString.h" |
| 58 #include <limits> |
59 | 59 |
60 namespace WebCore { | 60 namespace WebCore { |
61 | 61 |
62 using namespace HTMLNames; | 62 using namespace HTMLNames; |
63 | 63 |
64 HTMLFormElement::HTMLFormElement(Document& document) | 64 HTMLFormElement::HTMLFormElement(Document& document) |
65 : HTMLElement(formTag, document) | 65 : HTMLElement(formTag, document) |
66 #if !ENABLE(OILPAN) | 66 #if !ENABLE(OILPAN) |
67 , m_weakPtrFactory(this) | 67 , m_weakPtrFactory(this) |
68 #endif | 68 #endif |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 } | 810 } |
811 | 811 |
812 void HTMLFormElement::setDemoted(bool demoted) | 812 void HTMLFormElement::setDemoted(bool demoted) |
813 { | 813 { |
814 if (demoted) | 814 if (demoted) |
815 UseCounter::count(document(), UseCounter::DemotedFormElement); | 815 UseCounter::count(document(), UseCounter::DemotedFormElement); |
816 m_wasDemoted = demoted; | 816 m_wasDemoted = demoted; |
817 } | 817 } |
818 | 818 |
819 } // namespace | 819 } // namespace |
OLD | NEW |