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) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. |
7 * Copyright (C) 2010 Google Inc. All rights reserved. | 7 * Copyright (C) 2010 Google Inc. All rights reserved. |
8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. | 8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "core/dom/NodeComputedStyle.h" | 33 #include "core/dom/NodeComputedStyle.h" |
34 #include "core/dom/NodeTraversal.h" | 34 #include "core/dom/NodeTraversal.h" |
35 #include "core/dom/ScriptLoader.h" | 35 #include "core/dom/ScriptLoader.h" |
36 #include "core/dom/Text.h" | 36 #include "core/dom/Text.h" |
37 #include "core/dom/shadow/ShadowRoot.h" | 37 #include "core/dom/shadow/ShadowRoot.h" |
38 #include "core/html/HTMLDataListElement.h" | 38 #include "core/html/HTMLDataListElement.h" |
39 #include "core/html/HTMLOptGroupElement.h" | 39 #include "core/html/HTMLOptGroupElement.h" |
40 #include "core/html/HTMLSelectElement.h" | 40 #include "core/html/HTMLSelectElement.h" |
41 #include "core/html/parser/HTMLParserIdioms.h" | 41 #include "core/html/parser/HTMLParserIdioms.h" |
42 #include "core/layout/LayoutTheme.h" | 42 #include "core/layout/LayoutTheme.h" |
| 43 #include "core/style/ComputedStyle.h" |
43 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
44 #include "wtf/text/StringBuilder.h" | 45 #include "wtf/text/StringBuilder.h" |
45 | 46 |
46 namespace blink { | 47 namespace blink { |
47 | 48 |
48 using namespace HTMLNames; | 49 using namespace HTMLNames; |
49 | 50 |
50 HTMLOptionElement::HTMLOptionElement(Document& document) | 51 HTMLOptionElement::HTMLOptionElement(Document& document) |
51 : HTMLElement(optionTag, document), m_isSelected(false) { | 52 : HTMLElement(optionTag, document), m_isSelected(false) { |
52 setHasCustomStyleCallbacks(); | 53 setHasCustomStyleCallbacks(); |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 } | 454 } |
454 | 455 |
455 String HTMLOptionElement::innerText() { | 456 String HTMLOptionElement::innerText() { |
456 // A workaround for crbug.com/424578. We add ShadowRoot to an OPTION, but | 457 // A workaround for crbug.com/424578. We add ShadowRoot to an OPTION, but |
457 // innerText behavior for Shadow DOM is unclear. We just return the same | 458 // innerText behavior for Shadow DOM is unclear. We just return the same |
458 // string before adding ShadowRoot. | 459 // string before adding ShadowRoot. |
459 return textContent(); | 460 return textContent(); |
460 } | 461 } |
461 | 462 |
462 } // namespace blink | 463 } // namespace blink |
OLD | NEW |