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 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1543 | 1543 |
1544 void HTMLSelectElement::finishParsingChildren() | 1544 void HTMLSelectElement::finishParsingChildren() |
1545 { | 1545 { |
1546 HTMLFormControlElementWithState::finishParsingChildren(); | 1546 HTMLFormControlElementWithState::finishParsingChildren(); |
1547 m_isParsingInProgress = false; | 1547 m_isParsingInProgress = false; |
1548 updateListItemSelectedStates(); | 1548 updateListItemSelectedStates(); |
1549 } | 1549 } |
1550 | 1550 |
1551 bool HTMLSelectElement::anonymousIndexedSetter(unsigned index, PassRefPtr<HTMLOp
tionElement> value, ExceptionState& exceptionState) | 1551 bool HTMLSelectElement::anonymousIndexedSetter(unsigned index, PassRefPtr<HTMLOp
tionElement> value, ExceptionState& exceptionState) |
1552 { | 1552 { |
1553 if (!value) { | 1553 if (!value) { // undefined or null |
1554 exceptionState.throwTypeError(ExceptionMessages::failedToSet(String::num
ber(index), "HTMLSelectElement", "The value provided was not an HTMLOptionElemen
t.")); | 1554 remove(index); |
1555 return false; | 1555 return true; |
1556 } | 1556 } |
1557 setOption(index, value.get(), exceptionState); | 1557 setOption(index, value.get(), exceptionState); |
1558 return true; | 1558 return true; |
1559 } | 1559 } |
1560 | 1560 |
1561 bool HTMLSelectElement::anonymousIndexedSetterRemove(unsigned index, ExceptionSt
ate& exceptionState) | |
1562 { | |
1563 remove(index); | |
1564 return true; | |
1565 } | |
1566 | |
1567 bool HTMLSelectElement::isInteractiveContent() const | 1561 bool HTMLSelectElement::isInteractiveContent() const |
1568 { | 1562 { |
1569 return true; | 1563 return true; |
1570 } | 1564 } |
1571 | 1565 |
1572 bool HTMLSelectElement::supportsAutofocus() const | 1566 bool HTMLSelectElement::supportsAutofocus() const |
1573 { | 1567 { |
1574 return true; | 1568 return true; |
1575 } | 1569 } |
1576 | 1570 |
1577 } // namespace | 1571 } // namespace |
OLD | NEW |