HTMLFieldSetElement.h [plain text]
#ifndef HTMLFieldSetElement_h
#define HTMLFieldSetElement_h
#include "HTMLFormControlElement.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:
private:
HTMLFieldSetElement(const QualifiedName&, Document&, HTMLFormElement*);
~HTMLFieldSetElement();
virtual bool isEnumeratable() const override { return true; }
virtual bool supportsFocus() const override;
virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override;
virtual const AtomicString& formControlType() const override;
virtual bool recalcWillValidate() const override { return false; }
virtual void disabledAttributeChanged() override;
virtual void disabledStateChanged() override;
virtual void childrenChanged(const ChildChange&) override;
virtual void didMoveToNewDocument(Document* oldDocument) override;
void refreshElementsIfNeeded() const;
mutable Vector<FormAssociatedElement*> m_associatedElements;
mutable uint64_t m_documentVersion;
};
NODE_TYPE_CASTS(HTMLFieldSetElement)
}
#endif