| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 if (DateTimeEditElement* edit = dateTimeEditElement()) | 233 if (DateTimeEditElement* edit = dateTimeEditElement()) |
| 234 edit->stepDown(); | 234 edit->stepDown(); |
| 235 } | 235 } |
| 236 | 236 |
| 237 void BaseMultipleFieldsDateAndTimeInputType::spinButtonStepUp() | 237 void BaseMultipleFieldsDateAndTimeInputType::spinButtonStepUp() |
| 238 { | 238 { |
| 239 if (DateTimeEditElement* edit = dateTimeEditElement()) | 239 if (DateTimeEditElement* edit = dateTimeEditElement()) |
| 240 edit->stepUp(); | 240 edit->stepUp(); |
| 241 } | 241 } |
| 242 | 242 |
| 243 void BaseMultipleFieldsDateAndTimeInputType::spinButtonDidReleaseMouseCapture() |
| 244 { |
| 245 element().dispatchFormControlChangeEvent(); |
| 246 } |
| 247 |
| 243 bool BaseMultipleFieldsDateAndTimeInputType::isPickerIndicatorOwnerDisabledOrRea
dOnly() const | 248 bool BaseMultipleFieldsDateAndTimeInputType::isPickerIndicatorOwnerDisabledOrRea
dOnly() const |
| 244 { | 249 { |
| 245 return element().isDisabledOrReadOnly(); | 250 return element().isDisabledOrReadOnly(); |
| 246 } | 251 } |
| 247 | 252 |
| 248 void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(const St
ring& value) | 253 void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(const St
ring& value) |
| 249 { | 254 { |
| 250 if (element().isValidValue(value)) { | 255 if (element().isValidValue(value)) { |
| 251 element().setValue(value, DispatchInputAndChangeEvent); | 256 element().setValue(value, DispatchInputAndChangeEvent); |
| 252 return; | 257 return; |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 clearButton->setInlineStyleProperty(CSSPropertyPointerEvents, CSSValueNo
ne); | 607 clearButton->setInlineStyleProperty(CSSPropertyPointerEvents, CSSValueNo
ne); |
| 603 } else { | 608 } else { |
| 604 clearButton->removeInlineStyleProperty(CSSPropertyOpacity); | 609 clearButton->removeInlineStyleProperty(CSSPropertyOpacity); |
| 605 clearButton->removeInlineStyleProperty(CSSPropertyPointerEvents); | 610 clearButton->removeInlineStyleProperty(CSSPropertyPointerEvents); |
| 606 } | 611 } |
| 607 } | 612 } |
| 608 | 613 |
| 609 } // namespace WebCore | 614 } // namespace WebCore |
| 610 | 615 |
| 611 #endif | 616 #endif |
| OLD | NEW |