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

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

Issue 15899009: Support indexed setter generation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 7 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
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 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 return options; 1563 return options;
1564 } 1564 }
1565 1565
1566 void HTMLSelectElement::finishParsingChildren() 1566 void HTMLSelectElement::finishParsingChildren()
1567 { 1567 {
1568 HTMLFormControlElementWithState::finishParsingChildren(); 1568 HTMLFormControlElementWithState::finishParsingChildren();
1569 m_isParsingInProgress = false; 1569 m_isParsingInProgress = false;
1570 updateListItemSelectedStates(); 1570 updateListItemSelectedStates();
1571 } 1571 }
1572 1572
1573 bool HTMLSelectElement::anonymousIndexedSetter(unsigned index, PassRefPtr<HTMLOp tionElement> value, bool isValueNull, bool isValueUndefined, ExceptionCode& ec)
1574 {
1575 if (!value) {
1576 ec = TYPE_MISMATCH_ERR;
1577 return false;
1578 }
1579 setOption(index, value.get(), ec);
1580 return true;
1581 }
1582
1573 } // namespace 1583 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698