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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 bool isDisplayNone() const; | 85 bool isDisplayNone() const; |
86 | 86 |
87 int listIndex() const; | 87 int listIndex() const; |
88 | 88 |
89 private: | 89 private: |
90 explicit HTMLOptionElement(Document&); | 90 explicit HTMLOptionElement(Document&); |
91 ~HTMLOptionElement(); | 91 ~HTMLOptionElement(); |
92 | 92 |
93 bool supportsFocus() const override; | 93 bool supportsFocus() const override; |
| 94 bool isDefaultButtonForForm() const override; |
94 void attach(const AttachContext& = AttachContext()) override; | 95 void attach(const AttachContext& = AttachContext()) override; |
95 void detach(const AttachContext& = AttachContext()) override; | 96 void detach(const AttachContext& = AttachContext()) override; |
96 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; | 97 void parseAttribute(const QualifiedName&, const AtomicString&, const AtomicS
tring&) override; |
97 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 98 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
98 void removedFrom(ContainerNode*) override; | 99 void removedFrom(ContainerNode*) override; |
99 void accessKeyAction(bool) override; | 100 void accessKeyAction(bool) override; |
100 void childrenChanged(const ChildrenChange&) override; | 101 void childrenChanged(const ChildrenChange&) override; |
101 | 102 |
102 // <option> never has a layoutObject so we manually manage a cached style. | 103 // <option> never has a layoutObject so we manually manage a cached style. |
103 void updateNonComputedStyle(); | 104 void updateNonComputedStyle(); |
(...skipping 10 matching lines...) Expand all Loading... |
114 bool m_isSelected; | 115 bool m_isSelected; |
115 // Represents 'dirtiness'. | 116 // Represents 'dirtiness'. |
116 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-dirtines
s | 117 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-dirtines
s |
117 bool m_isDirty = false; | 118 bool m_isDirty = false; |
118 RefPtr<ComputedStyle> m_style; | 119 RefPtr<ComputedStyle> m_style; |
119 }; | 120 }; |
120 | 121 |
121 } // namespace blink | 122 } // namespace blink |
122 | 123 |
123 #endif // HTMLOptionElement_h | 124 #endif // HTMLOptionElement_h |
OLD | NEW |