| 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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| 11 * License as published by the Free Software Foundation; either | 11 * License as published by the Free Software Foundation; either |
| 12 * version 2 of the License, or (at your option) any later version. | 12 * version 2 of the License, or (at your option) any later version. |
| 13 * | 13 * |
| 14 * This library is distributed in the hope that it will be useful, | 14 * This library is distributed in the hope that it will be useful, |
| 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 * Library General Public License for more details. | 17 * Library General Public License for more details. |
| 18 * | 18 * |
| 19 * You should have received a copy of the GNU Library General Public License | 19 * You should have received a copy of the GNU Library General Public License |
| 20 * along with this library; see the file COPYING.LIB. If not, write to | 20 * along with this library; see the file COPYING.LIB. If not, write to |
| 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 22 * Boston, MA 02110-1301, USA. | 22 * Boston, MA 02110-1301, USA. |
| 23 * | 23 * |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "core/html/HTMLFormElement.h" | 26 #include "core/html/HTMLFormElement.h" |
| 27 | 27 |
| 28 #include <limits> |
| 28 #include "bindings/core/v8/RadioNodeListOrElement.h" | 29 #include "bindings/core/v8/RadioNodeListOrElement.h" |
| 29 #include "bindings/core/v8/ScriptController.h" | 30 #include "bindings/core/v8/ScriptController.h" |
| 30 #include "bindings/core/v8/ScriptEventListener.h" | 31 #include "bindings/core/v8/ScriptEventListener.h" |
| 31 #include "core/HTMLNames.h" | 32 #include "core/HTMLNames.h" |
| 32 #include "core/dom/Attribute.h" | 33 #include "core/dom/Attribute.h" |
| 33 #include "core/dom/Document.h" | 34 #include "core/dom/Document.h" |
| 34 #include "core/dom/ElementTraversal.h" | 35 #include "core/dom/ElementTraversal.h" |
| 35 #include "core/dom/NodeListsNodeData.h" | 36 #include "core/dom/NodeListsNodeData.h" |
| 36 #include "core/events/Event.h" | 37 #include "core/events/Event.h" |
| 37 #include "core/events/ScopedEventQueue.h" | 38 #include "core/events/ScopedEventQueue.h" |
| 38 #include "core/frame/LocalDOMWindow.h" | 39 #include "core/frame/LocalDOMWindow.h" |
| 39 #include "core/frame/LocalFrame.h" | 40 #include "core/frame/LocalFrame.h" |
| 41 #include "core/frame/LocalFrameClient.h" |
| 40 #include "core/frame/RemoteFrame.h" | 42 #include "core/frame/RemoteFrame.h" |
| 41 #include "core/frame/UseCounter.h" | 43 #include "core/frame/UseCounter.h" |
| 42 #include "core/frame/csp/ContentSecurityPolicy.h" | 44 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 43 #include "core/html/HTMLCollection.h" | 45 #include "core/html/HTMLCollection.h" |
| 44 #include "core/html/HTMLDialogElement.h" | 46 #include "core/html/HTMLDialogElement.h" |
| 45 #include "core/html/HTMLFormControlsCollection.h" | 47 #include "core/html/HTMLFormControlsCollection.h" |
| 46 #include "core/html/HTMLImageElement.h" | 48 #include "core/html/HTMLImageElement.h" |
| 47 #include "core/html/HTMLInputElement.h" | 49 #include "core/html/HTMLInputElement.h" |
| 48 #include "core/html/HTMLObjectElement.h" | 50 #include "core/html/HTMLObjectElement.h" |
| 49 #include "core/html/RadioNodeList.h" | 51 #include "core/html/RadioNodeList.h" |
| 50 #include "core/html/forms/FormController.h" | 52 #include "core/html/forms/FormController.h" |
| 51 #include "core/inspector/ConsoleMessage.h" | 53 #include "core/inspector/ConsoleMessage.h" |
| 52 #include "core/layout/LayoutObject.h" | 54 #include "core/layout/LayoutObject.h" |
| 53 #include "core/loader/FormSubmission.h" | 55 #include "core/loader/FormSubmission.h" |
| 54 #include "core/loader/FrameLoader.h" | 56 #include "core/loader/FrameLoader.h" |
| 55 #include "core/loader/FrameLoaderClient.h" | |
| 56 #include "core/loader/MixedContentChecker.h" | 57 #include "core/loader/MixedContentChecker.h" |
| 57 #include "core/loader/NavigationScheduler.h" | 58 #include "core/loader/NavigationScheduler.h" |
| 58 #include "platform/UserGestureIndicator.h" | 59 #include "platform/UserGestureIndicator.h" |
| 59 #include "public/platform/WebInsecureRequestPolicy.h" | 60 #include "public/platform/WebInsecureRequestPolicy.h" |
| 60 #include "wtf/AutoReset.h" | 61 #include "wtf/AutoReset.h" |
| 61 #include "wtf/text/AtomicString.h" | 62 #include "wtf/text/AtomicString.h" |
| 62 #include <limits> | |
| 63 | 63 |
| 64 namespace blink { | 64 namespace blink { |
| 65 | 65 |
| 66 using namespace HTMLNames; | 66 using namespace HTMLNames; |
| 67 | 67 |
| 68 HTMLFormElement::HTMLFormElement(Document& document) | 68 HTMLFormElement::HTMLFormElement(Document& document) |
| 69 : HTMLElement(formTag, document), | 69 : HTMLElement(formTag, document), |
| 70 m_listedElementsAreDirty(false), | 70 m_listedElementsAreDirty(false), |
| 71 m_imageElementsAreDirty(false), | 71 m_imageElementsAreDirty(false), |
| 72 m_hasElementsAssociatedByParser(false), | 72 m_hasElementsAssociatedByParser(false), |
| (...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 for (const auto& control : listedElements()) { | 826 for (const auto& control : listedElements()) { |
| 827 if (!control->isFormControlElement()) | 827 if (!control->isFormControlElement()) |
| 828 continue; | 828 continue; |
| 829 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton()) | 829 if (toHTMLFormControlElement(control)->canBeSuccessfulSubmitButton()) |
| 830 toHTMLFormControlElement(control)->pseudoStateChanged( | 830 toHTMLFormControlElement(control)->pseudoStateChanged( |
| 831 CSSSelector::PseudoDefault); | 831 CSSSelector::PseudoDefault); |
| 832 } | 832 } |
| 833 } | 833 } |
| 834 | 834 |
| 835 } // namespace blink | 835 } // namespace blink |
| OLD | NEW |