Index: Source/core/html/HTMLOptGroupElement.h |
diff --git a/Source/core/html/HTMLOptGroupElement.h b/Source/core/html/HTMLOptGroupElement.h |
index 1decd1cfa7fb038b33cbd56322fbe577d0d2e63a..3c2b2caa93fd5614463e8c994a74c89a1ee1fd16 100644 |
--- a/Source/core/html/HTMLOptGroupElement.h |
+++ b/Source/core/html/HTMLOptGroupElement.h |
@@ -29,39 +29,29 @@ |
namespace WebCore { |
class HTMLSelectElement; |
+class HTMLDivElement; |
class HTMLOptGroupElement FINAL : public HTMLElement { |
public: |
- DECLARE_NODE_FACTORY(HTMLOptGroupElement); |
+ static PassRefPtrWillBeRawPtr<HTMLOptGroupElement> create(Document&); |
virtual bool isDisabledFormControl() const OVERRIDE; |
HTMLSelectElement* ownerSelectElement() const; |
String groupLabelText() const; |
- bool isDisplayNone() const; |
- |
private: |
explicit HTMLOptGroupElement(Document&); |
- virtual bool rendererIsFocusable() const OVERRIDE; |
+ virtual bool rendererIsFocusable() const OVERRIDE { return true; } |
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(const ChildrenChange&) OVERRIDE; |
- |
virtual void accessKeyAction(bool sendMouseEvents) OVERRIDE; |
+ virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE; |
- // <optgroup> never has a renderer so we manually manage a cached style. |
- void updateNonRenderStyle(); |
- virtual RenderStyle* nonRendererStyle() const OVERRIDE; |
- virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE; |
- |
+ void updateGroupLabel(); |
void recalcSelectOptions(); |
- |
- RefPtr<RenderStyle> m_style; |
+ HTMLDivElement& optGroupLabelElement() const; |
}; |
} //namespace |