OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 m_timeInputType.element()->setFocus(true); | 145 m_timeInputType.element()->setFocus(true); |
146 } | 146 } |
147 | 147 |
148 void TimeInputType::DateTimeEditControlOwnerImpl::editControlValueChanged() | 148 void TimeInputType::DateTimeEditControlOwnerImpl::editControlValueChanged() |
149 { | 149 { |
150 RefPtr<HTMLInputElement> input(m_timeInputType.element()); | 150 RefPtr<HTMLInputElement> input(m_timeInputType.element()); |
151 input->setValueInternal(m_timeInputType.serialize(Decimal::fromDouble(m_time
InputType.m_dateTimeEditElement->valueAsDouble())), DispatchNoEvent); | 151 input->setValueInternal(m_timeInputType.serialize(Decimal::fromDouble(m_time
InputType.m_dateTimeEditElement->valueAsDouble())), DispatchNoEvent); |
152 input->setNeedsStyleRecalc(); | 152 input->setNeedsStyleRecalc(); |
153 input->dispatchFormControlInputEvent(); | 153 input->dispatchFormControlInputEvent(); |
154 input->dispatchFormControlChangeEvent(); | 154 input->dispatchFormControlChangeEvent(); |
| 155 input->notifyFormStateChanged(); |
155 } | 156 } |
156 | 157 |
157 bool TimeInputType::hasCustomFocusLogic() const | 158 bool TimeInputType::hasCustomFocusLogic() const |
158 { | 159 { |
159 return false; | 160 return false; |
160 } | 161 } |
161 | 162 |
162 bool TimeInputType::DateTimeEditControlOwnerImpl::isEditControlOwnerDisabled() c
onst | 163 bool TimeInputType::DateTimeEditControlOwnerImpl::isEditControlOwnerDisabled() c
onst |
163 { | 164 { |
164 return m_timeInputType.element()->readOnly(); | 165 return m_timeInputType.element()->readOnly(); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 #else | 316 #else |
316 TimeInputType::TimeInputType(HTMLInputElement* element) | 317 TimeInputType::TimeInputType(HTMLInputElement* element) |
317 : BaseDateAndTimeInputType(element) | 318 : BaseDateAndTimeInputType(element) |
318 { | 319 { |
319 } | 320 } |
320 #endif | 321 #endif |
321 | 322 |
322 } // namespace WebCore | 323 } // namespace WebCore |
323 | 324 |
324 #endif | 325 #endif |
OLD | NEW |