HTMLFieldSetElement.h [plain text]
#ifndef HTMLFieldSetElement_h
#define HTMLFieldSetElement_h
#include "HTMLFormControlElement.h"
#include <wtf/OwnPtr.h>
namespace WebCore {
class FormAssociatedElement;
class HTMLCollection;
class HTMLFieldSetElement FINAL : public HTMLFormControlElement {
public:
static PassRefPtr<HTMLFieldSetElement> create(const QualifiedName&, Document*, HTMLFormElement*);
HTMLLegendElement* legend() const;
PassRefPtr<HTMLCollection> elements();
const Vector<FormAssociatedElement*>& associatedElements() const;
unsigned length() const;
protected:
virtual void disabledAttributeChanged() OVERRIDE;
private:
HTMLFieldSetElement(const QualifiedName&, Document*, HTMLFormElement*);
virtual bool isEnumeratable() const { return true; }
virtual bool supportsFocus() const OVERRIDE;
virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
virtual const AtomicString& formControlType() const;
virtual bool recalcWillValidate() const { 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