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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 recalcSelectOptions(); | 63 recalcSelectOptions(); |
64 HTMLElement::childrenChanged(change); | 64 HTMLElement::childrenChanged(change); |
65 } | 65 } |
66 | 66 |
67 void HTMLOptGroupElement::parseAttribute(const QualifiedName& name, const Atomic
String& value) | 67 void HTMLOptGroupElement::parseAttribute(const QualifiedName& name, const Atomic
String& value) |
68 { | 68 { |
69 HTMLElement::parseAttribute(name, value); | 69 HTMLElement::parseAttribute(name, value); |
70 recalcSelectOptions(); | 70 recalcSelectOptions(); |
71 | 71 |
72 if (name == disabledAttr) | 72 if (name == disabledAttr) |
73 didAffectSelector(AffectedSelectorDisabled | AffectedSelectorEnabled); | 73 didAffectSelector(StyleChangeReasonForTracing::fromAttribute(disabledAtt
r), AffectedSelectorDisabled | AffectedSelectorEnabled); |
74 else if (name == labelAttr) | 74 else if (name == labelAttr) |
75 updateGroupLabel(); | 75 updateGroupLabel(); |
76 } | 76 } |
77 | 77 |
78 void HTMLOptGroupElement::recalcSelectOptions() | 78 void HTMLOptGroupElement::recalcSelectOptions() |
79 { | 79 { |
80 if (HTMLSelectElement* select = Traversal<HTMLSelectElement>::firstAncestor(
*this)) | 80 if (HTMLSelectElement* select = Traversal<HTMLSelectElement>::firstAncestor(
*this)) |
81 select->setRecalcListItems(); | 81 select->setRecalcListItems(); |
82 } | 82 } |
83 | 83 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 label.setTextContent(labelText); | 165 label.setTextContent(labelText); |
166 label.setAttribute(aria_labelAttr, AtomicString(labelText)); | 166 label.setAttribute(aria_labelAttr, AtomicString(labelText)); |
167 } | 167 } |
168 | 168 |
169 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const | 169 HTMLDivElement& HTMLOptGroupElement::optGroupLabelElement() const |
170 { | 170 { |
171 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement
Names::optGroupLabel())); | 171 return *toHTMLDivElement(userAgentShadowRoot()->getElementById(ShadowElement
Names::optGroupLabel())); |
172 } | 172 } |
173 | 173 |
174 } // namespace | 174 } // namespace |
OLD | NEW |