Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Issue 302473003: Fix: Incorrect display of HTML select multiple tag on Android (Closed)

Created:
6 years, 7 months ago by dtrebbien
Modified:
6 years, 6 months ago
Reviewers:
tkent, keishi
CC:
blink-reviews, blink-reviews-rendering, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr., rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fix: Incorrect display of HTML select multiple tag on Android This CL adds to RenderMenuList::setTextFromOption(int) so that when the associated HTML <select> element has the multiple attribute, the <select> element's options are iterated over and a count of the number of selected options is determined. When the number of selected options is 0 or 2 or more, then the RenderMenuList's text is set to "SELECTED_COUNT selected" (e.g. "2 selected"). When exactly one option is selected, then the text is set to the selected option's text. This is similar to iOS. When 0 or 2 or more options are selected, then the text of the menulist button is set to "SELECTED_COUNT Items". When exactly one option is selected, then the text is set to the selected option's text. Depends on: - https://codereview.chromium.org/280483002/ - https://codereview.chromium.org/295933003/ BUG=314704 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175010

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressing feedback #

Total comments: 1

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -13 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/select/menulist-appearance-basic.html View 1 chunk +62 lines, -0 lines 0 comments Download
M LayoutTests/platform/linux/fast/forms/select/menulist-appearance-basic-expected.txt View 2 chunks +21 lines, -3 lines 0 comments Download
M LayoutTests/platform/mac/fast/forms/select/menulist-appearance-basic-expected.txt View 2 chunks +21 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderMenuList.cpp View 1 2 chunks +40 lines, -7 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
dtrebbien
Hi Adam and Kent, This is the change that I had in mind to fix ...
6 years, 7 months ago (2014-05-24 22:35:34 UTC) #1
tkent
On 2014/05/24 22:35:34, dtrebbien wrote: > For the LayoutTests/fast/forms/select/menulist-appearance-basic.html test, there > are "expected" screenshots ...
6 years, 7 months ago (2014-05-27 00:45:41 UTC) #2
tkent
-abarth, +keishi
6 years, 7 months ago (2014-05-27 00:46:08 UTC) #3
tkent
https://codereview.chromium.org/302473003/diff/1/Source/core/rendering/RenderMenuList.cpp File Source/core/rendering/RenderMenuList.cpp (right): https://codereview.chromium.org/302473003/diff/1/Source/core/rendering/RenderMenuList.cpp#newcode229 Source/core/rendering/RenderMenuList.cpp:229: if (isHTMLOptionElement(*element)) { nit: We prefer early exit. That ...
6 years, 7 months ago (2014-05-27 00:52:10 UTC) #4
dtrebbien
On 2014/05/27 00:45:41, tkent wrote: > On 2014/05/24 22:35:34, dtrebbien wrote: > > For the ...
6 years, 7 months ago (2014-05-27 11:48:37 UTC) #5
dtrebbien
On 2014/05/27 00:52:10, tkent wrote: > https://codereview.chromium.org/302473003/diff/1/Source/core/rendering/RenderMenuList.cpp > File Source/core/rendering/RenderMenuList.cpp (right): > > https://codereview.chromium.org/302473003/diff/1/Source/core/rendering/RenderMenuList.cpp#newcode229 > ...
6 years, 7 months ago (2014-05-27 11:52:41 UTC) #6
tkent
lgtm https://codereview.chromium.org/302473003/diff/10001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/302473003/diff/10001/LayoutTests/TestExpectations#newcode1012 LayoutTests/TestExpectations:1012: crbug.com/314704 fast/forms/select/menulist-appearance-basic.html [ NeedsRebaseline ] nit: TestExpectations is ...
6 years, 7 months ago (2014-05-27 23:08:51 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrebbien@gmail.com/302473003/10001
6 years, 7 months ago (2014-05-27 23:09:11 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-27 23:09:26 UTC) #9
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-27 23:09:27 UTC) #10
dtrebbien
On 2014/05/27 23:09:27, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
6 years, 7 months ago (2014-05-28 00:00:27 UTC) #11
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 7 months ago (2014-05-28 00:01:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrebbien@gmail.com/302473003/30001
6 years, 7 months ago (2014-05-28 00:01:53 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_rel on tryserver.blink ...
6 years, 7 months ago (2014-05-28 01:45:18 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-28 01:45:53 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/18113)
6 years, 7 months ago (2014-05-28 01:45:54 UTC) #16
tkent
On 2014/05/27 11:48:37, dtrebbien wrote: > On 2014/05/27 00:45:41, tkent wrote: > > On 2014/05/24 ...
6 years, 7 months ago (2014-05-28 04:20:12 UTC) #17
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 7 months ago (2014-05-28 04:21:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrebbien@gmail.com/302473003/30001
6 years, 7 months ago (2014-05-28 04:21:12 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 7 months ago (2014-05-28 04:21:46 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-28 04:22:11 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu_triggered_tests/builds/18113)
6 years, 7 months ago (2014-05-28 04:22:12 UTC) #22
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 6 months ago (2014-05-28 09:06:40 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrebbien@gmail.com/302473003/30001
6 years, 6 months ago (2014-05-28 09:06:47 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-28 09:07:01 UTC) #25
commit-bot: I haz the power
Failed to apply patch for LayoutTests/TestExpectations: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-05-28 09:07:02 UTC) #26
dtrebbien
On 2014/05/28 09:07:02, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
6 years, 6 months ago (2014-05-28 22:12:56 UTC) #27
tkent
The CQ bit was checked by tkent@chromium.org
6 years, 6 months ago (2014-05-28 22:14:58 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrebbien@gmail.com/302473003/50001
6 years, 6 months ago (2014-05-28 22:15:27 UTC) #29
commit-bot: I haz the power
6 years, 6 months ago (2014-05-28 23:34:08 UTC) #30
Message was sent while issue was closed.
Change committed as 175010

Powered by Google App Engine
This is Rietveld 408576698