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