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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // Optgroup elements do not have a renderer so we check the renderStyle inst
ead. | 66 // Optgroup elements do not have a renderer so we check the renderStyle inst
ead. |
67 return supportsFocus() && renderStyle() && renderStyle()->display() != NONE; | 67 return supportsFocus() && renderStyle() && renderStyle()->display() != NONE; |
68 } | 68 } |
69 | 69 |
70 const AtomicString& HTMLOptGroupElement::formControlType() const | 70 const AtomicString& HTMLOptGroupElement::formControlType() const |
71 { | 71 { |
72 DEFINE_STATIC_LOCAL(const AtomicString, optgroup, ("optgroup", AtomicString:
:ConstructFromLiteral)); | 72 DEFINE_STATIC_LOCAL(const AtomicString, optgroup, ("optgroup", AtomicString:
:ConstructFromLiteral)); |
73 return optgroup; | 73 return optgroup; |
74 } | 74 } |
75 | 75 |
76 void HTMLOptGroupElement::childrenChanged(bool changedByParser, Node* beforeChan
ge, Node* afterChange, int childCountDelta) | 76 void HTMLOptGroupElement::childrenChanged(bool changedByParser, const Handle<Nod
e>& beforeChange, const Handle<Node>& afterChange, int childCountDelta) |
77 { | 77 { |
78 recalcSelectOptions(); | 78 recalcSelectOptions(); |
79 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); | 79 HTMLElement::childrenChanged(changedByParser, beforeChange, afterChange, chi
ldCountDelta); |
80 } | 80 } |
81 | 81 |
82 void HTMLOptGroupElement::parseAttribute(const QualifiedName& name, const Atomic
String& value) | 82 void HTMLOptGroupElement::parseAttribute(const QualifiedName& name, const Atomic
String& value) |
83 { | 83 { |
84 HTMLElement::parseAttribute(name, value); | 84 HTMLElement::parseAttribute(name, value); |
85 recalcSelectOptions(); | 85 recalcSelectOptions(); |
86 | 86 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 if (select && !select->focused()) | 162 if (select && !select->focused()) |
163 select->accessKeyAction(false); | 163 select->accessKeyAction(false); |
164 } | 164 } |
165 | 165 |
166 void HTMLOptGroupElement::accept(Visitor* visitor) const | 166 void HTMLOptGroupElement::accept(Visitor* visitor) const |
167 { | 167 { |
168 HTMLElement::accept(visitor); | 168 HTMLElement::accept(visitor); |
169 } | 169 } |
170 | 170 |
171 } // namespace | 171 } // namespace |
OLD | NEW |