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

Side by Side Diff: Source/WebCore/html/shadow/DateTimeNumericFieldElement.cpp

Issue 11548051: Merge 137275 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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/WebCore/html/shadow/DateTimeNumericFieldElement.h ('k') | no next file » | 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 focusOnNextField(); 143 focusOnNextField();
144 else 144 else
145 m_lastDigitCharTime = keyboardEvent->timeStamp(); 145 m_lastDigitCharTime = keyboardEvent->timeStamp();
146 } 146 }
147 147
148 bool DateTimeNumericFieldElement::hasValue() const 148 bool DateTimeNumericFieldElement::hasValue() const
149 { 149 {
150 return m_hasValue; 150 return m_hasValue;
151 } 151 }
152 152
153 Locale& DateTimeNumericFieldElement::localeForOwner() const
154 {
155 return document()->getCachedLocale(localeIdentifier());
156 }
157
158 int DateTimeNumericFieldElement::maximum() const 153 int DateTimeNumericFieldElement::maximum() const
159 { 154 {
160 return m_range.maximum; 155 return m_range.maximum;
161 } 156 }
162 157
163 int DateTimeNumericFieldElement::minimum() const 158 int DateTimeNumericFieldElement::minimum() const
164 { 159 {
165 return m_range.minimum; 160 return m_range.minimum;
166 } 161 }
167 162
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 } 207 }
213 208
214 String DateTimeNumericFieldElement::visibleValue() const 209 String DateTimeNumericFieldElement::visibleValue() const
215 { 210 {
216 return m_hasValue ? value() : m_placeholder; 211 return m_hasValue ? value() : m_placeholder;
217 } 212 }
218 213
219 } // namespace WebCore 214 } // namespace WebCore
220 215
221 #endif 216 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/shadow/DateTimeNumericFieldElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698