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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 void collectAssociatedElements(Node& root, Vector<FormAssociatedElement*>&)
const; | 141 void collectAssociatedElements(Node& root, Vector<FormAssociatedElement*>&)
const; |
142 void collectImageElements(Node& root, Vector<HTMLImageElement*>&); | 142 void collectImageElements(Node& root, Vector<HTMLImageElement*>&); |
143 | 143 |
144 // Returns true if the submission should proceed. | 144 // Returns true if the submission should proceed. |
145 bool validateInteractively(Event*); | 145 bool validateInteractively(Event*); |
146 | 146 |
147 // Validates each of the controls, and stores controls of which 'invalid' | 147 // Validates each of the controls, and stores controls of which 'invalid' |
148 // event was not canceled to the specified vector. Returns true if there | 148 // event was not canceled to the specified vector. Returns true if there |
149 // are any invalid controls in this form. | 149 // are any invalid controls in this form. |
150 bool checkInvalidControlsAndCollectUnhandled(Vector<RefPtr<FormAssociatedEle
ment> >*); | 150 bool checkInvalidControlsAndCollectUnhandled(WillBeHeapVector<RefPtrWillBeMe
mber<FormAssociatedElement> >*); |
151 | 151 |
152 Element* elementFromPastNamesMap(const AtomicString&); | 152 Element* elementFromPastNamesMap(const AtomicString&); |
153 void addToPastNamesMap(Element*, const AtomicString& pastName); | 153 void addToPastNamesMap(Element*, const AtomicString& pastName); |
154 void removeFromPastNamesMap(HTMLElement&); | 154 void removeFromPastNamesMap(HTMLElement&); |
155 | 155 |
156 typedef HashMap<AtomicString, Element*> PastNamesMap; | 156 typedef HashMap<AtomicString, Element*> PastNamesMap; |
157 | 157 |
158 FormSubmission::Attributes m_attributes; | 158 FormSubmission::Attributes m_attributes; |
159 OwnPtr<PastNamesMap> m_pastNamesMap; | 159 OwnPtr<PastNamesMap> m_pastNamesMap; |
160 | 160 |
161 RadioButtonGroupScope m_radioButtonGroupScope; | 161 RadioButtonGroupScope m_radioButtonGroupScope; |
162 | 162 |
163 // Do not access m_associatedElements directly. Use associatedElements() ins
tead. | 163 // Do not access m_associatedElements directly. Use associatedElements() ins
tead. |
| 164 // FIXME: Oilpan: m_associatedElements should be HeapVector<Member<>>. |
164 Vector<FormAssociatedElement*> m_associatedElements; | 165 Vector<FormAssociatedElement*> m_associatedElements; |
165 // Do not access m_imageElements directly. Use imageElements() instead. | 166 // Do not access m_imageElements directly. Use imageElements() instead. |
166 Vector<HTMLImageElement*> m_imageElements; | 167 Vector<HTMLImageElement*> m_imageElements; |
167 WeakPtrFactory<HTMLFormElement> m_weakPtrFactory; | 168 WeakPtrFactory<HTMLFormElement> m_weakPtrFactory; |
168 bool m_associatedElementsAreDirty; | 169 bool m_associatedElementsAreDirty; |
169 bool m_imageElementsAreDirty; | 170 bool m_imageElementsAreDirty; |
170 bool m_hasElementsAssociatedByParser; | 171 bool m_hasElementsAssociatedByParser; |
171 bool m_didFinishParsingChildren; | 172 bool m_didFinishParsingChildren; |
172 | 173 |
173 bool m_wasUserSubmitted; | 174 bool m_wasUserSubmitted; |
174 | 175 |
175 bool m_isInResetFunction; | 176 bool m_isInResetFunction; |
176 | 177 |
177 bool m_wasDemoted; | 178 bool m_wasDemoted; |
178 | 179 |
179 OwnPtr<GenericEventQueue> m_pendingAutocompleteEventsQueue; | 180 OwnPtr<GenericEventQueue> m_pendingAutocompleteEventsQueue; |
180 }; | 181 }; |
181 | 182 |
182 } // namespace WebCore | 183 } // namespace WebCore |
183 | 184 |
184 #endif // HTMLFormElement_h | 185 #endif // HTMLFormElement_h |
OLD | NEW |