| Index: Source/WebCore/html/shadow/DateTimeSymbolicFieldElement.cpp
|
| ===================================================================
|
| --- Source/WebCore/html/shadow/DateTimeSymbolicFieldElement.cpp (revision 141197)
|
| +++ Source/WebCore/html/shadow/DateTimeSymbolicFieldElement.cpp (working copy)
|
| @@ -87,16 +87,14 @@
|
| return m_selectedIndex >= 0;
|
| }
|
|
|
| -int DateTimeSymbolicFieldElement::maximum() const
|
| +void DateTimeSymbolicFieldElement::initialize(const AtomicString& pseudo, const String& axHelpText)
|
| {
|
| - return static_cast<int>(m_symbols.size());
|
| + // The minimum and maximum below are exposed to users, and 1-based numbers
|
| + // are natural for symbolic fields. For example, the minimum value of a
|
| + // month field should be 1, not 0.
|
| + DateTimeFieldElement::initialize(pseudo, axHelpText, 1, static_cast<int>(m_symbols.size()));
|
| }
|
|
|
| -int DateTimeSymbolicFieldElement::minimum() const
|
| -{
|
| - return 1;
|
| -}
|
| -
|
| void DateTimeSymbolicFieldElement::setEmptyValue(EventBehavior eventBehavior)
|
| {
|
| if (isReadOnly())
|
|
|