| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 sizeAttribute->setValue(attrSize); | 297 sizeAttribute->setValue(attrSize); |
| 298 } | 298 } |
| 299 size = max(size, 1); | 299 size = max(size, 1); |
| 300 | 300 |
| 301 // Ensure that we've determined selectedness of the items at least once
prior to changing the size. | 301 // Ensure that we've determined selectedness of the items at least once
prior to changing the size. |
| 302 if (oldSize != size) | 302 if (oldSize != size) |
| 303 updateListItemSelectedStates(); | 303 updateListItemSelectedStates(); |
| 304 | 304 |
| 305 m_size = size; | 305 m_size = size; |
| 306 setNeedsValidityCheck(); | 306 setNeedsValidityCheck(); |
| 307 if (m_size != oldSize && attached()) { | 307 if (m_size != oldSize && confusingAndOftenMisusedAttached()) { |
| 308 lazyReattach(); | 308 lazyReattach(); |
| 309 setRecalcListItems(); | 309 setRecalcListItems(); |
| 310 } | 310 } |
| 311 } else if (name == multipleAttr) | 311 } else if (name == multipleAttr) |
| 312 parseMultipleAttribute(value); | 312 parseMultipleAttribute(value); |
| 313 else if (name == accesskeyAttr) { | 313 else if (name == accesskeyAttr) { |
| 314 // FIXME: ignore for the moment. | 314 // FIXME: ignore for the moment. |
| 315 // | 315 // |
| 316 } else | 316 } else |
| 317 HTMLFormControlElementWithState::parseAttribute(name, value); | 317 HTMLFormControlElementWithState::parseAttribute(name, value); |
| (...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1572 return true; | 1572 return true; |
| 1573 } | 1573 } |
| 1574 | 1574 |
| 1575 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionSt
ate& es) | 1575 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionSt
ate& es) |
| 1576 { | 1576 { |
| 1577 remove(index); | 1577 remove(index); |
| 1578 return true; | 1578 return true; |
| 1579 } | 1579 } |
| 1580 | 1580 |
| 1581 } // namespace | 1581 } // namespace |
| OLD | NEW |