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 24 matching lines...) Expand all Loading... |
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 "platform/wtf/StdLibExtras.h" | 37 #include "platform/wtf/StdLibExtras.h" |
38 #include "platform/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 } | |
47 | 46 |
48 // An explicit empty destructor should be in HTMLOptGroupElement.cpp, because | 47 // An explicit empty destructor should be in HTMLOptGroupElement.cpp, because |
49 // if an implicit destructor is used or an empty destructor is defined in | 48 // if an implicit destructor is used or an empty destructor is defined in |
50 // HTMLOptGroupElement.h, when including HTMLOptGroupElement.h, | 49 // HTMLOptGroupElement.h, when including HTMLOptGroupElement.h, |
51 // msvc tries to expand the destructor and causes | 50 // msvc tries to expand the destructor and causes |
52 // a compile error because of lack of ComputedStyle definition. | 51 // a compile error because of lack of ComputedStyle definition. |
53 HTMLOptGroupElement::~HTMLOptGroupElement() {} | 52 HTMLOptGroupElement::~HTMLOptGroupElement() {} |
54 | 53 |
55 HTMLOptGroupElement* HTMLOptGroupElement::Create(Document& document) { | 54 HTMLOptGroupElement* HTMLOptGroupElement::Create(Document& document) { |
56 HTMLOptGroupElement* opt_group_element = new HTMLOptGroupElement(document); | 55 HTMLOptGroupElement* opt_group_element = new HTMLOptGroupElement(document); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 label.setTextContent(label_text); | 154 label.setTextContent(label_text); |
156 label.setAttribute(aria_labelAttr, AtomicString(label_text)); | 155 label.setAttribute(aria_labelAttr, AtomicString(label_text)); |
157 } | 156 } |
158 | 157 |
159 HTMLDivElement& HTMLOptGroupElement::OptGroupLabelElement() const { | 158 HTMLDivElement& HTMLOptGroupElement::OptGroupLabelElement() const { |
160 return *toHTMLDivElementOrDie(UserAgentShadowRoot()->getElementById( | 159 return *toHTMLDivElementOrDie(UserAgentShadowRoot()->getElementById( |
161 ShadowElementNames::OptGroupLabel())); | 160 ShadowElementNames::OptGroupLabel())); |
162 } | 161 } |
163 | 162 |
164 } // namespace blink | 163 } // namespace blink |
OLD | NEW |