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

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

Issue 1115553002: Removing blink::prefix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « Source/core/html/HTMLMediaSource.h ('k') | Source/core/html/HTMLTextAreaElement.cpp » ('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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 return !listIndex && toHTMLOptionElement(listItems()[listIndex])->value().is Empty(); 153 return !listIndex && toHTMLOptionElement(listItems()[listIndex])->value().is Empty();
154 } 154 }
155 155
156 String HTMLSelectElement::validationMessage() const 156 String HTMLSelectElement::validationMessage() const
157 { 157 {
158 if (!willValidate()) 158 if (!willValidate())
159 return String(); 159 return String();
160 if (customError()) 160 if (customError())
161 return customValidationMessage(); 161 return customValidationMessage();
162 if (valueMissing()) 162 if (valueMissing())
163 return locale().queryString(blink::WebLocalizedString::ValidationValueMi ssingForSelect); 163 return locale().queryString(WebLocalizedString::ValidationValueMissingFo rSelect);
164 return String(); 164 return String();
165 } 165 }
166 166
167 bool HTMLSelectElement::valueMissing() const 167 bool HTMLSelectElement::valueMissing() const
168 { 168 {
169 if (!willValidate()) 169 if (!willValidate())
170 return false; 170 return false;
171 171
172 if (!isRequired()) 172 if (!isRequired())
173 return false; 173 return false;
(...skipping 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 int focusedIndex = activeSelectionEndListIndex(); 1765 int focusedIndex = activeSelectionEndListIndex();
1766 if (focusedIndex < 0) 1766 if (focusedIndex < 0)
1767 focusedIndex = firstSelectableListIndex(); 1767 focusedIndex = firstSelectableListIndex();
1768 if (focusedIndex < 0) 1768 if (focusedIndex < 0)
1769 return nullptr; 1769 return nullptr;
1770 HTMLElement* focused = listItems()[focusedIndex]; 1770 HTMLElement* focused = listItems()[focusedIndex];
1771 return isHTMLOptionElement(focused) ? toHTMLOptionElement(focused) : nullptr ; 1771 return isHTMLOptionElement(focused) ? toHTMLOptionElement(focused) : nullptr ;
1772 } 1772 }
1773 1773
1774 } // namespace 1774 } // namespace
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaSource.h ('k') | Source/core/html/HTMLTextAreaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698