| 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/Text.h" | 35 #include "core/dom/Text.h" |
| 36 #include "core/dom/shadow/ShadowRoot.h" | 36 #include "core/dom/shadow/ShadowRoot.h" |
| 37 #include "core/html/HTMLDataListElement.h" | 37 #include "core/html/HTMLDataListElement.h" |
| 38 #include "core/html/HTMLOptGroupElement.h" | 38 #include "core/html/HTMLOptGroupElement.h" |
| 39 #include "core/html/HTMLSelectElement.h" | 39 #include "core/html/HTMLSelectElement.h" |
| 40 #include "core/html/parser/HTMLParserIdioms.h" | 40 #include "core/html/parser/HTMLParserIdioms.h" |
| 41 #include "core/layout/LayoutTheme.h" | 41 #include "core/layout/LayoutTheme.h" |
| 42 #include "core/style/ComputedStyle.h" | 42 #include "core/style/ComputedStyle.h" |
| 43 #include "wtf/Vector.h" | 43 #include "platform/wtf/Vector.h" |
| 44 #include "wtf/text/StringBuilder.h" | 44 #include "platform/wtf/text/StringBuilder.h" |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 using namespace HTMLNames; | 48 using namespace HTMLNames; |
| 49 | 49 |
| 50 HTMLOptionElement::HTMLOptionElement(Document& document) | 50 HTMLOptionElement::HTMLOptionElement(Document& document) |
| 51 : HTMLElement(optionTag, document), is_selected_(false) {} | 51 : HTMLElement(optionTag, document), is_selected_(false) {} |
| 52 | 52 |
| 53 // An explicit empty destructor should be in HTMLOptionElement.cpp, because | 53 // An explicit empty destructor should be in HTMLOptionElement.cpp, because |
| 54 // if an implicit destructor is used or an empty destructor is defined in | 54 // if an implicit destructor is used or an empty destructor is defined in |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 } | 433 } |
| 434 | 434 |
| 435 String HTMLOptionElement::innerText() { | 435 String HTMLOptionElement::innerText() { |
| 436 // A workaround for crbug.com/424578. We add ShadowRoot to an OPTION, but | 436 // A workaround for crbug.com/424578. We add ShadowRoot to an OPTION, but |
| 437 // innerText behavior for Shadow DOM is unclear. We just return the same | 437 // innerText behavior for Shadow DOM is unclear. We just return the same |
| 438 // string before adding ShadowRoot. | 438 // string before adding ShadowRoot. |
| 439 return textContent(); | 439 return textContent(); |
| 440 } | 440 } |
| 441 | 441 |
| 442 } // namespace blink | 442 } // namespace blink |
| OLD | NEW |