Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: Source/core/html/HTMLSelectElement.cpp

Issue 143943020: Replace [TreatNullAs=functionName] with [StrictTypeChecking] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update tests, Python, and IDLExtendedAttributes.txt Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLSelectElement.h ('k') | Source/core/html/HTMLSelectElement.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLSelectElement.h ('k') | Source/core/html/HTMLSelectElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698