#include "core/html/HTMLElement.h"
-namespace WebCore {
+namespace blink {
class ExceptionState;
class HTMLDataListElement;
void setSelectedState(bool);
HTMLFormElement* form() const;
+ bool spatialNavigationFocused() const;
bool isDisplayNone() const;
-
- virtual void removedFrom(ContainerNode* insertionPoint) OVERRIDE;
-
private:
explicit HTMLOptionElement(Document&);
+ virtual ~HTMLOptionElement();
- virtual bool rendererIsFocusable() const OVERRIDE;
- virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; }
+ virtual bool rendererIsFocusable() const OVERRIDE { return true; }
virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
virtual void detach(const AttachContext& = AttachContext()) OVERRIDE;
-
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
-
virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
+ virtual void removedFrom(ContainerNode*) OVERRIDE;
virtual void accessKeyAction(bool) OVERRIDE;
-
- virtual void childrenChanged(bool changedByParser = false, Node* beforeChange = 0, Node* afterChange = 0, int childCountDelta = 0) OVERRIDE;
+ virtual void childrenChanged(const ChildrenChange&) OVERRIDE;
// <option> never has a renderer so we manually manage a cached style.
void updateNonRenderStyle();
virtual RenderStyle* nonRendererStyle() const OVERRIDE;
virtual PassRefPtr<RenderStyle> customStyleForRenderer() OVERRIDE;
virtual void didRecalcStyle(StyleRecalcChange) OVERRIDE;
+ virtual void didAddUserAgentShadowRoot(ShadowRoot&) OVERRIDE;
String collectOptionInnerText() const;
+ void updateLabel();
+
bool m_disabled;
bool m_isSelected;
RefPtr<RenderStyle> m_style;
};
-} // namespace WebCore
+} // namespace blink
#endif