#ifndef HTMLOptGroupElement_h
#define HTMLOptGroupElement_h
#include "core/html/HTMLElement.h"
namespace WebCore {
class HTMLSelectElement;
class HTMLOptGroupElement FINAL : public HTMLElement {
public:
static PassRefPtr<HTMLOptGroupElement> create(Document&);
virtual bool isDisabledFormControl() const OVERRIDE;
HTMLSelectElement* ownerSelectElement() const;
String groupLabelText() const;
private:
explicit HTMLOptGroupElement(Document&);
virtual bool rendererIsFocusable() const OVERRIDE;
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE;
void updateNonRenderStyle();
virtual RenderStyle* nonRendererStyle() const OVERRIDE;
virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
void recalcSelectOptions();
RefPtr<RenderStyle> m_style;
};
}
#endif