OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2004, 2005, 2006, 2010, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2010, 2011 Apple Inc. All rights reserved. |
6 * Copyright (C) 2010 Google Inc. All rights reserved. | 6 * Copyright (C) 2010 Google Inc. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 virtual bool isDisabledFormControl() const override; | 62 virtual bool isDisabledFormControl() const override; |
63 | 63 |
64 String textIndentedToRespectGroupLabel() const; | 64 String textIndentedToRespectGroupLabel() const; |
65 | 65 |
66 void setSelectedState(bool); | 66 void setSelectedState(bool); |
67 | 67 |
68 HTMLFormElement* form() const; | 68 HTMLFormElement* form() const; |
69 bool spatialNavigationFocused() const; | 69 bool spatialNavigationFocused() const; |
70 | 70 |
71 bool isDisplayNone() const; | 71 bool isDisplayNone() const; |
| 72 |
| 73 int listIndex() const; |
| 74 |
72 private: | 75 private: |
73 explicit HTMLOptionElement(Document&); | 76 explicit HTMLOptionElement(Document&); |
74 | 77 |
75 virtual bool rendererIsFocusable() const override { return true; } | 78 virtual bool rendererIsFocusable() const override { return true; } |
76 virtual void attach(const AttachContext& = AttachContext()) override; | 79 virtual void attach(const AttachContext& = AttachContext()) override; |
77 virtual void detach(const AttachContext& = AttachContext()) override; | 80 virtual void detach(const AttachContext& = AttachContext()) override; |
78 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; | 81 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr
ide; |
79 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; | 82 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; |
80 virtual void didNotifySubtreeInsertionsToDocument() override; | 83 virtual void didNotifySubtreeInsertionsToDocument() override; |
81 virtual void removedFrom(ContainerNode*) override; | 84 virtual void removedFrom(ContainerNode*) override; |
(...skipping 12 matching lines...) Expand all Loading... |
94 void updateLabel(); | 97 void updateLabel(); |
95 | 98 |
96 bool m_disabled; | 99 bool m_disabled; |
97 bool m_isSelected; | 100 bool m_isSelected; |
98 RefPtr<RenderStyle> m_style; | 101 RefPtr<RenderStyle> m_style; |
99 }; | 102 }; |
100 | 103 |
101 } // namespace blink | 104 } // namespace blink |
102 | 105 |
103 #endif // HTMLOptionElement_h | 106 #endif // HTMLOptionElement_h |
OLD | NEW |