This repository has been archived by the owner on Jun 16, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INPUT_MULTIPLE_FIELDS_UI: Refactoring: Do not call updateInnerTextVal…
…ue if only read-only sub-fields have values https://bugs.webkit.org/show_bug.cgi?id=103033 Reviewed by Kentaro Hara. Source/WebCore: input[type=time] can have read-only sub fields. If only read-only fields have values, we don't need to call updateInnerTextValue when HTMLInputElement::value is set to "". Tests: this patch doesn't change any visible behavior, but we add test cases to fast/forms/time-multiple-fields/time-multiple-fields-value-set-empty.html just in case. * html/shadow/DateTimeEditElement.h: (DateTimeEditElement): Declare anyEditableFieldsHaveValues. * html/shadow/DateTimeEditElement.cpp: (WebCore::DateTimeEditElement::anyEditableFieldsHaveValues): Added. This function checks value existence against only editable sub-fields. * html/BaseMultipleFieldsDateAndTimeInputType.cpp: (WebCore::BaseMultipleFieldsDateAndTimeInputType::setValue): Call DateTimeEditElement::anyEditableFieldsHaveValues() instead of DateTimeFieldsState::hasAnyValue(). * html/DateTimeFieldsState.h: Remove hasAnyValue. LayoutTests: * fast/forms/time-multiple-fields/time-multiple-fields-value-set-empty-expected.txt: * fast/forms/time-multiple-fields/time-multiple-fields-value-set-empty.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@135510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
6244f03
commit 9c670fb
Showing
8 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
2012-11-22 Kent Tamura <[email protected]> | ||
|
||
INPUT_MULTIPLE_FIELDS_UI: Refactoring: Do not call updateInnerTextValue if only read-only sub-fields have values | ||
https://bugs.webkit.org/show_bug.cgi?id=103033 | ||
|
||
Reviewed by Kentaro Hara. | ||
|
||
* fast/forms/time-multiple-fields/time-multiple-fields-value-set-empty-expected.txt: | ||
* fast/forms/time-multiple-fields/time-multiple-fields-value-set-empty.html: | ||
|
||
2012-11-22 Keishi Hattori <[email protected]> | ||
|
||
Add week-multiple-fields tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,29 @@ | ||
2012-11-22 Kent Tamura <[email protected]> | ||
|
||
INPUT_MULTIPLE_FIELDS_UI: Refactoring: Do not call updateInnerTextValue if only read-only sub-fields have values | ||
https://bugs.webkit.org/show_bug.cgi?id=103033 | ||
|
||
Reviewed by Kentaro Hara. | ||
|
||
input[type=time] can have read-only sub fields. If only read-only fields | ||
have values, we don't need to call updateInnerTextValue when | ||
HTMLInputElement::value is set to "". | ||
|
||
Tests: this patch doesn't change any visible behavior, but we add test cases to | ||
fast/forms/time-multiple-fields/time-multiple-fields-value-set-empty.html | ||
just in case. | ||
|
||
* html/shadow/DateTimeEditElement.h: | ||
(DateTimeEditElement): Declare anyEditableFieldsHaveValues. | ||
* html/shadow/DateTimeEditElement.cpp: | ||
(WebCore::DateTimeEditElement::anyEditableFieldsHaveValues): | ||
Added. This function checks value existence against only editable sub-fields. | ||
* html/BaseMultipleFieldsDateAndTimeInputType.cpp: | ||
(WebCore::BaseMultipleFieldsDateAndTimeInputType::setValue): | ||
Call DateTimeEditElement::anyEditableFieldsHaveValues() instead of | ||
DateTimeFieldsState::hasAnyValue(). | ||
* html/DateTimeFieldsState.h: Remove hasAnyValue. | ||
|
||
2012-11-22 Allan Sandfeld Jensen <[email protected]> | ||
|
||
[Qt] Lookup mimetypes using QMimeDatabase | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters