| 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 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "core/HTMLNames.h" | 28 #include "core/HTMLNames.h" |
| 29 #include "core/dom/NodeComputedStyle.h" | 29 #include "core/dom/NodeComputedStyle.h" |
| 30 #include "core/dom/Text.h" | 30 #include "core/dom/Text.h" |
| 31 #include "core/editing/EditingUtilities.h" | 31 #include "core/editing/EditingUtilities.h" |
| 32 #include "core/html/HTMLContentElement.h" | 32 #include "core/html/HTMLContentElement.h" |
| 33 #include "core/html/HTMLDivElement.h" | 33 #include "core/html/HTMLDivElement.h" |
| 34 #include "core/html/HTMLSelectElement.h" | 34 #include "core/html/HTMLSelectElement.h" |
| 35 #include "core/html/shadow/ShadowElementNames.h" | 35 #include "core/html/shadow/ShadowElementNames.h" |
| 36 #include "core/style/ComputedStyle.h" | 36 #include "core/style/ComputedStyle.h" |
| 37 #include "wtf/StdLibExtras.h" | 37 #include "platform/wtf/StdLibExtras.h" |
| 38 #include "wtf/text/CharacterNames.h" | 38 #include "platform/wtf/text/CharacterNames.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 using namespace HTMLNames; | 42 using namespace HTMLNames; |
| 43 | 43 |
| 44 inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document) | 44 inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document) |
| 45 : HTMLElement(optgroupTag, document) { | 45 : HTMLElement(optgroupTag, document) { |
| 46 } | 46 } |
| 47 | 47 |
| 48 // An explicit empty destructor should be in HTMLOptGroupElement.cpp, because | 48 // An explicit empty destructor should be in HTMLOptGroupElement.cpp, because |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 label.setTextContent(label_text); | 155 label.setTextContent(label_text); |
| 156 label.setAttribute(aria_labelAttr, AtomicString(label_text)); | 156 label.setAttribute(aria_labelAttr, AtomicString(label_text)); |
| 157 } | 157 } |
| 158 | 158 |
| 159 HTMLDivElement& HTMLOptGroupElement::OptGroupLabelElement() const { | 159 HTMLDivElement& HTMLOptGroupElement::OptGroupLabelElement() const { |
| 160 return *toHTMLDivElementOrDie(UserAgentShadowRoot()->GetElementById( | 160 return *toHTMLDivElementOrDie(UserAgentShadowRoot()->GetElementById( |
| 161 ShadowElementNames::OptGroupLabel())); | 161 ShadowElementNames::OptGroupLabel())); |
| 162 } | 162 } |
| 163 | 163 |
| 164 } // namespace blink | 164 } // namespace blink |
| OLD | NEW |