#ifndef HTMLFieldSetElement_h
#define HTMLFieldSetElement_h
#include "core/html/HTMLFormControlElement.h"
namespace WebCore {
class FormAssociatedElement;
class HTMLCollection;
class HTMLFieldSetElement FINAL : public HTMLFormControlElement {
public:
static PassRefPtr<HTMLFieldSetElement> create(Document&, HTMLFormElement*);
HTMLLegendElement* legend() const;
PassRefPtr<HTMLCollection> elements();
const Vector<FormAssociatedElement*>& associatedElements() const;
protected:
virtual void disabledAttributeChanged() OVERRIDE;
private:
HTMLFieldSetElement(Document&, HTMLFormElement*);
virtual bool isEnumeratable() const OVERRIDE { return true; }
virtual bool supportsFocus() const OVERRIDE;
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
virtual const AtomicString& formControlType() const OVERRIDE;
virtual bool recalcWillValidate() const OVERRIDE { return false; }
virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE;
virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
static void invalidateDisabledStateUnder(Element&);
void refreshElementsIfNeeded() const;
mutable Vector<FormAssociatedElement*> m_associatedElements;
mutable uint64_t m_documentVersion;
};
}
#endif