| 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 reserv
ed. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Apple Inc. All rights reserv
ed. |
| 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 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 26 matching lines...) Expand all Loading... |
| 37 #include "wtf/unicode/CharacterNames.h" | 37 #include "wtf/unicode/CharacterNames.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 using namespace HTMLNames; | 41 using namespace HTMLNames; |
| 42 | 42 |
| 43 inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document) | 43 inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document) |
| 44 : HTMLElement(optgroupTag, document) | 44 : HTMLElement(optgroupTag, document) |
| 45 { | 45 { |
| 46 setHasCustomStyleCallbacks(); | 46 setHasCustomStyleCallbacks(); |
| 47 ScriptWrappable::init(this); | |
| 48 } | 47 } |
| 49 | 48 |
| 50 PassRefPtrWillBeRawPtr<HTMLOptGroupElement> HTMLOptGroupElement::create(Document
& document) | 49 PassRefPtrWillBeRawPtr<HTMLOptGroupElement> HTMLOptGroupElement::create(Document
& document) |
| 51 { | 50 { |
| 52 RefPtrWillBeRawPtr<HTMLOptGroupElement> optGroupElement = adoptRefWillBeNoop
(new HTMLOptGroupElement(document)); | 51 RefPtrWillBeRawPtr<HTMLOptGroupElement> optGroupElement = adoptRefWillBeNoop
(new HTMLOptGroupElement(document)); |
| 53 optGroupElement->ensureUserAgentShadowRoot(); | 52 optGroupElement->ensureUserAgentShadowRoot(); |
| 54 return optGroupElement.release(); | 53 return optGroupElement.release(); |
| 55 } | 54 } |
| 56 | 55 |
| 57 bool HTMLOptGroupElement::isDisabledFormControl() const | 56 bool HTMLOptGroupElement::isDisabledFormControl() const |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 label.setTextContent(labelText); | 165 label.setTextContent(labelText); |
| 167 label.setAttribute(aria_labelAttr, AtomicString(labelText)); | 166 label.setAttribute(aria_labelAttr, AtomicString(labelText)); |
| 168 } | 167 } |
| 169 | 168 |
| 170 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const | 169 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const |
| 171 { | 170 { |
| 172 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement
Names::optGroupLabel())); | 171 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement
Names::optGroupLabel())); |
| 173 } | 172 } |
| 174 | 173 |
| 175 } // namespace | 174 } // namespace |
| OLD | NEW |