| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 4 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights
reserved. |
| 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 9 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 10 * | 10 * |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 } | 324 } |
| 325 | 325 |
| 326 bool HTMLSelectElement::canSelectAll() const | 326 bool HTMLSelectElement::canSelectAll() const |
| 327 { | 327 { |
| 328 return !usesMenuList(); | 328 return !usesMenuList(); |
| 329 } | 329 } |
| 330 | 330 |
| 331 RenderObject* HTMLSelectElement::createRenderer(RenderStyle*) | 331 RenderObject* HTMLSelectElement::createRenderer(RenderStyle*) |
| 332 { | 332 { |
| 333 if (usesMenuList()) | 333 if (usesMenuList()) |
| 334 return new (document()->renderArena()) RenderMenuList(this); | 334 return new RenderMenuList(this); |
| 335 return new (document()->renderArena()) RenderListBox(this); | 335 return new RenderListBox(this); |
| 336 } | 336 } |
| 337 | 337 |
| 338 bool HTMLSelectElement::childShouldCreateRenderer(const NodeRenderingContext& ch
ildContext) const | 338 bool HTMLSelectElement::childShouldCreateRenderer(const NodeRenderingContext& ch
ildContext) const |
| 339 { | 339 { |
| 340 if (!HTMLFormControlElementWithState::childShouldCreateRenderer(childContext
)) | 340 if (!HTMLFormControlElementWithState::childShouldCreateRenderer(childContext
)) |
| 341 return false; | 341 return false; |
| 342 if (!usesMenuList()) | 342 if (!usesMenuList()) |
| 343 return childContext.node()->hasTagName(HTMLNames::optionTag) || isHTMLOp
tGroupElement(childContext.node()); | 343 return childContext.node()->hasTagName(HTMLNames::optionTag) || isHTMLOp
tGroupElement(childContext.node()); |
| 344 return false; | 344 return false; |
| 345 } | 345 } |
| (...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 return true; | 1579 return true; |
| 1580 } | 1580 } |
| 1581 | 1581 |
| 1582 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionCo
de& ec) | 1582 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionCo
de& ec) |
| 1583 { | 1583 { |
| 1584 remove(index); | 1584 remove(index); |
| 1585 return true; | 1585 return true; |
| 1586 } | 1586 } |
| 1587 | 1587 |
| 1588 } // namespace | 1588 } // namespace |
| OLD | NEW |