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

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

Issue 26622007: Move isAutofilled and setAutofilled from HTMLInputElement to HTMLFormControlElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update messaging in test. Created 7 years, 2 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/HTMLTextAreaElement.h » ('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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 successful = true; 1020 successful = true;
1021 } 1021 }
1022 } 1022 }
1023 1023
1024 // It's possible that this is a menulist with multiple options and nothing 1024 // It's possible that this is a menulist with multiple options and nothing
1025 // will be submitted (!successful). We won't send a unselected non-disabled 1025 // will be submitted (!successful). We won't send a unselected non-disabled
1026 // option as fallback. This behavior matches to other browsers. 1026 // option as fallback. This behavior matches to other browsers.
1027 return successful; 1027 return successful;
1028 } 1028 }
1029 1029
1030 void HTMLSelectElement::reset() 1030 void HTMLSelectElement::resetImpl()
1031 { 1031 {
1032 HTMLOptionElement* firstOption = 0; 1032 HTMLOptionElement* firstOption = 0;
1033 HTMLOptionElement* selectedOption = 0; 1033 HTMLOptionElement* selectedOption = 0;
1034 1034
1035 const Vector<HTMLElement*>& items = listItems(); 1035 const Vector<HTMLElement*>& items = listItems();
1036 for (unsigned i = 0; i < items.size(); ++i) { 1036 for (unsigned i = 0; i < items.size(); ++i) {
1037 HTMLElement* element = items[i]; 1037 HTMLElement* element = items[i];
1038 if (!element->hasTagName(optionTag)) 1038 if (!element->hasTagName(optionTag))
1039 continue; 1039 continue;
1040 1040
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLSelectElement.h ('k') | Source/core/html/HTMLTextAreaElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698