| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |