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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 private: | 88 private: |
89 explicit HTMLOptionElement(Document&); | 89 explicit HTMLOptionElement(Document&); |
90 ~HTMLOptionElement(); | 90 ~HTMLOptionElement(); |
91 | 91 |
92 bool supportsFocus() const override; | 92 bool supportsFocus() const override; |
93 void attach(const AttachContext& = AttachContext()) override; | 93 void attach(const AttachContext& = AttachContext()) override; |
94 void detach(const AttachContext& = AttachContext()) override; | 94 void detach(const AttachContext& = AttachContext()) override; |
95 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 95 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
96 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 96 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
97 void removedFrom(ContainerNode*) override; | 97 void removedFrom(ContainerNode* insertionPoint, Node* next) override; |
98 void accessKeyAction(bool) override; | 98 void accessKeyAction(bool) override; |
99 void childrenChanged(const ChildrenChange&) override; | 99 void childrenChanged(const ChildrenChange&) override; |
100 | 100 |
101 // <option> never has a layoutObject so we manually manage a cached style. | 101 // <option> never has a layoutObject so we manually manage a cached style. |
102 void updateNonComputedStyle(); | 102 void updateNonComputedStyle(); |
103 ComputedStyle* nonLayoutObjectComputedStyle() const override; | 103 ComputedStyle* nonLayoutObjectComputedStyle() const override; |
104 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | 104 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; |
105 void didAddUserAgentShadowRoot(ShadowRoot&) override; | 105 void didAddUserAgentShadowRoot(ShadowRoot&) override; |
106 | 106 |
107 String collectOptionInnerText() const; | 107 String collectOptionInnerText() const; |
108 | 108 |
109 void updateLabel(); | 109 void updateLabel(); |
110 | 110 |
111 bool m_disabled; | 111 bool m_disabled; |
112 // Represents 'selectedness'. | 112 // Represents 'selectedness'. |
113 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-selected
ness | 113 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-selected
ness |
114 bool m_isSelected; | 114 bool m_isSelected; |
115 // Represents 'dirtiness'. | 115 // Represents 'dirtiness'. |
116 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-dirtines
s | 116 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-dirtines
s |
117 bool m_isDirty = false; | 117 bool m_isDirty = false; |
118 RefPtr<ComputedStyle> m_style; | 118 RefPtr<ComputedStyle> m_style; |
119 }; | 119 }; |
120 | 120 |
121 } // namespace blink | 121 } // namespace blink |
122 | 122 |
123 #endif // HTMLOptionElement_h | 123 #endif // HTMLOptionElement_h |
OLD | NEW |