#include "core/html/HTMLElement.h"
#include "core/html/HTMLFormControlElement.h"
-#include "core/html/forms/CheckedRadioButtons.h"
+#include "core/html/forms/RadioButtonGroupScope.h"
#include "core/loader/FormState.h"
#include "core/loader/FormSubmission.h"
#include "wtf/OwnPtr.h"
virtual ~HTMLFormElement();
PassRefPtr<HTMLCollection> elements();
- void getNamedElements(const AtomicString&, Vector<RefPtr<Node> >&);
+ void getNamedElements(const AtomicString&, Vector<RefPtr<Element> >&);
unsigned length() const;
- Node* item(unsigned index);
+ Element* item(unsigned index);
String enctype() const { return m_attributes.encodingType(); }
void setEnctype(const AtomicString&);
DEFINE_ATTRIBUTE_EVENT_LISTENER(autocomplete);
DEFINE_ATTRIBUTE_EVENT_LISTENER(autocompleteerror);
- CheckedRadioButtons& checkedRadioButtons() { return m_checkedRadioButtons; }
+ RadioButtonGroupScope& radioButtonGroupScope() { return m_radioButtonGroupScope; }
const Vector<FormAssociatedElement*>& associatedElements() const;
const Vector<HTMLImageElement*>& imageElements();
void getTextFieldValues(StringPairVector& fieldNamesAndValues) const;
- void anonymousNamedGetter(const AtomicString& name, bool&, RefPtr<RadioNodeList>&, bool&, RefPtr<Node>&);
+ void anonymousNamedGetter(const AtomicString& name, bool&, RefPtr<RadioNodeList>&, bool&, RefPtr<Element>&);
private:
explicit HTMLFormElement(Document&);
// are any invalid controls in this form.
bool checkInvalidControlsAndCollectUnhandled(Vector<RefPtr<FormAssociatedElement> >*, HTMLFormControlElement::CheckValidityDispatchEvents = HTMLFormControlElement::CheckValidityDispatchEventsAllowed);
- Node* elementFromPastNamesMap(const AtomicString&);
- void addToPastNamesMap(Node*, const AtomicString& pastName);
+ Element* elementFromPastNamesMap(const AtomicString&);
+ void addToPastNamesMap(Element*, const AtomicString& pastName);
void removeFromPastNamesMap(HTMLElement&);
- typedef HashMap<AtomicString, Node*> PastNamesMap;
+ typedef HashMap<AtomicString, Element*> PastNamesMap;
FormSubmission::Attributes m_attributes;
OwnPtr<PastNamesMap> m_pastNamesMap;
- CheckedRadioButtons m_checkedRadioButtons;
+ RadioButtonGroupScope m_radioButtonGroupScope;
// Do not access m_associatedElements directly. Use associatedElements() instead.
Vector<FormAssociatedElement*> m_associatedElements;