| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 void detachLayoutTree(const AttachContext& = AttachContext()) override; | 102 void detachLayoutTree(const AttachContext& = AttachContext()) override; |
| 103 void parseAttribute(const QualifiedName&, | 103 void parseAttribute(const QualifiedName&, |
| 104 const AtomicString&, | 104 const AtomicString&, |
| 105 const AtomicString&) override; | 105 const AtomicString&) override; |
| 106 InsertionNotificationRequest insertedInto(ContainerNode*) override; | 106 InsertionNotificationRequest insertedInto(ContainerNode*) override; |
| 107 void removedFrom(ContainerNode*) override; | 107 void removedFrom(ContainerNode*) override; |
| 108 void accessKeyAction(bool) override; | 108 void accessKeyAction(bool) override; |
| 109 void childrenChanged(const ChildrenChange&) override; | 109 void childrenChanged(const ChildrenChange&) override; |
| 110 String innerText() override; | 110 String innerText() override; |
| 111 | 111 |
| 112 // <option> never has a layoutObject so we manually manage a cached style. | |
| 113 void updateNonComputedStyle(); | |
| 114 ComputedStyle* nonLayoutObjectComputedStyle() const override; | |
| 115 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | |
| 116 void didAddUserAgentShadowRoot(ShadowRoot&) override; | 112 void didAddUserAgentShadowRoot(ShadowRoot&) override; |
| 117 | 113 |
| 118 String collectOptionInnerText() const; | 114 String collectOptionInnerText() const; |
| 119 | 115 |
| 120 void updateLabel(); | 116 void updateLabel(); |
| 121 | 117 |
| 122 // Represents 'selectedness'. | 118 // Represents 'selectedness'. |
| 123 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-selectedne
ss | 119 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-selectedne
ss |
| 124 bool m_isSelected; | 120 bool m_isSelected; |
| 125 // Represents 'dirtiness'. | 121 // Represents 'dirtiness'. |
| 126 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-dirtiness | 122 // https://html.spec.whatwg.org/multipage/forms.html#concept-option-dirtiness |
| 127 bool m_isDirty = false; | 123 bool m_isDirty = false; |
| 128 RefPtr<ComputedStyle> m_style; | |
| 129 }; | 124 }; |
| 130 | 125 |
| 131 } // namespace blink | 126 } // namespace blink |
| 132 | 127 |
| 133 #endif // HTMLOptionElement_h | 128 #endif // HTMLOptionElement_h |
| OLD | NEW |