| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 HTMLElement::parseAttribute(name, oldValue, value); | 62 HTMLElement::parseAttribute(name, oldValue, value); |
| 63 | 63 |
| 64 if (name == disabledAttr) { | 64 if (name == disabledAttr) { |
| 65 pseudoStateChanged(CSSSelector::PseudoDisabled); | 65 pseudoStateChanged(CSSSelector::PseudoDisabled); |
| 66 pseudoStateChanged(CSSSelector::PseudoEnabled); | 66 pseudoStateChanged(CSSSelector::PseudoEnabled); |
| 67 } else if (name == labelAttr) { | 67 } else if (name == labelAttr) { |
| 68 updateGroupLabel(); | 68 updateGroupLabel(); |
| 69 } | 69 } |
| 70 } | 70 } |
| 71 | 71 |
| 72 void HTMLOptGroupElement::attach(const AttachContext& context) | 72 void HTMLOptGroupElement::attachLayoutTree(const AttachContext& context) |
| 73 { | 73 { |
| 74 if (context.resolvedStyle) { | 74 if (context.resolvedStyle) { |
| 75 ASSERT(!m_style || m_style == context.resolvedStyle); | 75 ASSERT(!m_style || m_style == context.resolvedStyle); |
| 76 m_style = context.resolvedStyle; | 76 m_style = context.resolvedStyle; |
| 77 } | 77 } |
| 78 HTMLElement::attach(context); | 78 HTMLElement::attachLayoutTree(context); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void HTMLOptGroupElement::detach(const AttachContext& context) | 81 void HTMLOptGroupElement::detach(const AttachContext& context) |
| 82 { | 82 { |
| 83 m_style.clear(); | 83 m_style.clear(); |
| 84 HTMLElement::detach(context); | 84 HTMLElement::detach(context); |
| 85 } | 85 } |
| 86 | 86 |
| 87 bool HTMLOptGroupElement::supportsFocus() const | 87 bool HTMLOptGroupElement::supportsFocus() const |
| 88 { | 88 { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 label.setTextContent(labelText); | 193 label.setTextContent(labelText); |
| 194 label.setAttribute(aria_labelAttr, AtomicString(labelText)); | 194 label.setAttribute(aria_labelAttr, AtomicString(labelText)); |
| 195 } | 195 } |
| 196 | 196 |
| 197 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const | 197 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const |
| 198 { | 198 { |
| 199 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement
Names::optGroupLabel())); | 199 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement
Names::optGroupLabel())); |
| 200 } | 200 } |
| 201 | 201 |
| 202 } // namespace blink | 202 } // namespace blink |
| OLD | NEW |