| 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 20 matching lines...) Expand all Loading... |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 class ExceptionState; | 33 class ExceptionState; |
| 34 class HTMLDataListElement; | 34 class HTMLDataListElement; |
| 35 class HTMLSelectElement; | 35 class HTMLSelectElement; |
| 36 class ComputedStyle; | 36 class ComputedStyle; |
| 37 | 37 |
| 38 class CORE_EXPORT HTMLOptionElement final : public HTMLElement { | 38 class CORE_EXPORT HTMLOptionElement final : public HTMLElement { |
| 39 DEFINE_WRAPPERTYPEINFO(); | 39 DEFINE_WRAPPERTYPEINFO(); |
| 40 public: | 40 public: |
| 41 static PassRefPtrWillBeRawPtr<HTMLOptionElement> create(Document&); | 41 static RawPtr<HTMLOptionElement> create(Document&); |
| 42 static PassRefPtrWillBeRawPtr<HTMLOptionElement> createForJSConstructor(Docu
ment&, const String& data, const AtomicString& value, | 42 static RawPtr<HTMLOptionElement> createForJSConstructor(Document&, const Str
ing& data, const AtomicString& value, |
| 43 bool defaultSelected, bool selected, ExceptionState&); | 43 bool defaultSelected, bool selected, ExceptionState&); |
| 44 | 44 |
| 45 // A text to be shown to users. The difference from |label()| is |label()| | 45 // A text to be shown to users. The difference from |label()| is |label()| |
| 46 // returns an empty string if |label| content attribute is empty. | 46 // returns an empty string if |label| content attribute is empty. |
| 47 // |displayLabel()| returns the value string in that case. | 47 // |displayLabel()| returns the value string in that case. |
| 48 String displayLabel() const; | 48 String displayLabel() const; |
| 49 | 49 |
| 50 // |text| IDL attribute implementations. | 50 // |text| IDL attribute implementations. |
| 51 String text() const; | 51 String text() const; |
| 52 void setText(const String&, ExceptionState&); | 52 void setText(const String&, ExceptionState&); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 bool m_isSelected; | 115 bool m_isSelected; |
| 116 // Represents 'dirtiness'. | 116 // Represents 'dirtiness'. |
| 117 // 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 |
| 118 bool m_isDirty = false; | 118 bool m_isDirty = false; |
| 119 RefPtr<ComputedStyle> m_style; | 119 RefPtr<ComputedStyle> m_style; |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 } // namespace blink | 122 } // namespace blink |
| 123 | 123 |
| 124 #endif // HTMLOptionElement_h | 124 #endif // HTMLOptionElement_h |
| OLD | NEW |