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) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 String name() const; | 83 String name() const; |
84 | 84 |
85 bool noValidate() const; | 85 bool noValidate() const; |
86 | 86 |
87 const AtomicString& action() const; | 87 const AtomicString& action() const; |
88 | 88 |
89 String method() const; | 89 String method() const; |
90 void setMethod(const AtomicString&); | 90 void setMethod(const AtomicString&); |
91 | 91 |
92 bool wasUserSubmitted() const; | |
93 | |
94 // Find the 'default button.' | 92 // Find the 'default button.' |
95 // https://html.spec.whatwg.org/multipage/forms.html#default-button | 93 // https://html.spec.whatwg.org/multipage/forms.html#default-button |
96 HTMLFormControlElement* findDefaultButton() const; | 94 HTMLFormControlElement* findDefaultButton() const; |
97 | 95 |
98 bool checkValidity(); | 96 bool checkValidity(); |
99 bool reportValidity(); | 97 bool reportValidity(); |
100 bool matchesValidityPseudoClasses() const final; | 98 bool matchesValidityPseudoClasses() const final; |
101 bool isValidElement() final; | 99 bool isValidElement() final; |
102 | 100 |
103 enum AutocompleteResult { | 101 enum AutocompleteResult { |
(...skipping 29 matching lines...) Expand all Loading... |
133 | 131 |
134 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 132 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
135 bool isURLAttribute(const Attribute&) const override; | 133 bool isURLAttribute(const Attribute&) const override; |
136 bool hasLegalLinkAttribute(const QualifiedName&) const override; | 134 bool hasLegalLinkAttribute(const QualifiedName&) const override; |
137 | 135 |
138 bool shouldRegisterAsNamedItem() const override { return true; } | 136 bool shouldRegisterAsNamedItem() const override { return true; } |
139 | 137 |
140 void copyNonAttributePropertiesFromElement(const Element&) override; | 138 void copyNonAttributePropertiesFromElement(const Element&) override; |
141 | 139 |
142 void submitDialog(PassRefPtrWillBeRawPtr<FormSubmission>); | 140 void submitDialog(PassRefPtrWillBeRawPtr<FormSubmission>); |
143 void submit(Event*, bool activateSubmitButton, bool processingUserGesture); | 141 void submit(Event*, bool activateSubmitButton); |
144 | 142 |
145 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>); | 143 void scheduleFormSubmission(PassRefPtrWillBeRawPtr<FormSubmission>); |
146 | 144 |
147 void collectAssociatedElements(Node& root, FormAssociatedElement::List&) con
st; | 145 void collectAssociatedElements(Node& root, FormAssociatedElement::List&) con
st; |
148 void collectImageElements(Node& root, WillBeHeapVector<RawPtrWillBeMember<HT
MLImageElement>>&); | 146 void collectImageElements(Node& root, WillBeHeapVector<RawPtrWillBeMember<HT
MLImageElement>>&); |
149 | 147 |
150 // Returns true if the submission should proceed. | 148 // Returns true if the submission should proceed. |
151 bool validateInteractively(); | 149 bool validateInteractively(); |
152 | 150 |
153 // Validates each of the controls, and stores controls of which 'invalid' | 151 // Validates each of the controls, and stores controls of which 'invalid' |
(...skipping 18 matching lines...) Expand all Loading... |
172 WillBeHeapVector<RawPtrWillBeMember<HTMLImageElement>> m_imageElements; | 170 WillBeHeapVector<RawPtrWillBeMember<HTMLImageElement>> m_imageElements; |
173 #if !ENABLE(OILPAN) | 171 #if !ENABLE(OILPAN) |
174 WeakPtrFactory<HTMLFormElement> m_weakPtrFactory; | 172 WeakPtrFactory<HTMLFormElement> m_weakPtrFactory; |
175 #endif | 173 #endif |
176 bool m_associatedElementsAreDirty : 1; | 174 bool m_associatedElementsAreDirty : 1; |
177 bool m_imageElementsAreDirty : 1; | 175 bool m_imageElementsAreDirty : 1; |
178 bool m_hasElementsAssociatedByParser : 1; | 176 bool m_hasElementsAssociatedByParser : 1; |
179 bool m_hasElementsAssociatedByFormAttribute : 1; | 177 bool m_hasElementsAssociatedByFormAttribute : 1; |
180 bool m_didFinishParsingChildren : 1; | 178 bool m_didFinishParsingChildren : 1; |
181 | 179 |
182 bool m_wasUserSubmitted : 1; | |
183 bool m_isSubmittingOrInUserJSSubmitEvent : 1; | 180 bool m_isSubmittingOrInUserJSSubmitEvent : 1; |
184 bool m_shouldSubmit : 1; | 181 bool m_shouldSubmit : 1; |
185 | 182 |
186 bool m_isInResetFunction : 1; | 183 bool m_isInResetFunction : 1; |
187 | 184 |
188 bool m_wasDemoted : 1; | 185 bool m_wasDemoted : 1; |
189 | 186 |
190 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue; | 187 OwnPtrWillBeMember<GenericEventQueue> m_pendingAutocompleteEventsQueue; |
191 }; | 188 }; |
192 | 189 |
193 } // namespace blink | 190 } // namespace blink |
194 | 191 |
195 #endif // HTMLFormElement_h | 192 #endif // HTMLFormElement_h |
OLD | NEW |