| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 using namespace HTMLNames; | 36 using namespace HTMLNames; |
| 37 | 37 |
| 38 inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document) | 38 inline HTMLOptGroupElement::HTMLOptGroupElement(Document& document) |
| 39 : HTMLElement(optgroupTag, document) | 39 : HTMLElement(optgroupTag, document) |
| 40 { | 40 { |
| 41 setHasCustomStyleCallbacks(); | 41 setHasCustomStyleCallbacks(); |
| 42 ScriptWrappable::init(this); | 42 ScriptWrappable::init(this); |
| 43 } | 43 } |
| 44 | 44 |
| 45 PassRefPtrWillBeRawPtr<HTMLOptGroupElement> HTMLOptGroupElement::create(Document
& document) | 45 DEFINE_NODE_FACTORY(HTMLOptGroupElement) |
| 46 { | |
| 47 return adoptRefWillBeRefCountedGarbageCollected(new HTMLOptGroupElement(docu
ment)); | |
| 48 } | |
| 49 | 46 |
| 50 bool HTMLOptGroupElement::isDisabledFormControl() const | 47 bool HTMLOptGroupElement::isDisabledFormControl() const |
| 51 { | 48 { |
| 52 return fastHasAttribute(disabledAttr); | 49 return fastHasAttribute(disabledAttr); |
| 53 } | 50 } |
| 54 | 51 |
| 55 bool HTMLOptGroupElement::rendererIsFocusable() const | 52 bool HTMLOptGroupElement::rendererIsFocusable() const |
| 56 { | 53 { |
| 57 // Optgroup elements do not have a renderer so we check the renderStyle inst
ead. | 54 // Optgroup elements do not have a renderer so we check the renderStyle inst
ead. |
| 58 return renderStyle() && renderStyle()->display() != NONE; | 55 return renderStyle() && renderStyle()->display() != NONE; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 select->accessKeyAction(false); | 137 select->accessKeyAction(false); |
| 141 } | 138 } |
| 142 | 139 |
| 143 bool HTMLOptGroupElement::isDisplayNone() const | 140 bool HTMLOptGroupElement::isDisplayNone() const |
| 144 { | 141 { |
| 145 RenderStyle* style = nonRendererStyle(); | 142 RenderStyle* style = nonRendererStyle(); |
| 146 return style && style->display() == NONE; | 143 return style && style->display() == NONE; |
| 147 } | 144 } |
| 148 | 145 |
| 149 } // namespace | 146 } // namespace |
| OLD | NEW |