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

Issue 546753002: Fix to Handle downkey event on last and first radio button of a radio button list (Closed)

Created:
6 years, 3 months ago by Paritosh Kumar
Modified:
6 years, 2 months ago
Reviewers:
tkent, keishi, habib.virji
CC:
tkent
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix to Handle downkey event on last and first radio button of a radio button list After pressing last radio button in the list, on pressing downArrow it will select back first radio button, similarly after pressing last radio button in the list, on pressing upArrow it will select last radio button. For this change I have added one test case : radio-checked-LastorFirst-then-DownorUp-keyDown.html. This HTML contains a list of radio buttons and after selecting last radio button downArrow keyDown event raised. Similarly done for first radio button also. R=habib.virji@samsung.com BUG=408512 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=183661

Patch Set 1 #

Patch Set 2 : #

Total comments: 19

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 7

Patch Set 5 : After Adding New Method HTMLElement* findNextFocusableRadioButton() #

Total comments: 8

Patch Set 6 : #

Total comments: 11

Patch Set 7 : After Changing the test case #

Total comments: 2

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : After Updating branch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -18 lines) Patch
A LayoutTests/fast/forms/radio/radio-group-arrow-cycle-edge.html View 1 2 3 4 5 6 1 chunk +54 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/radio/radio-group-arrow-cycle-edge-expected.txt View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M Source/core/html/forms/RadioInputType.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/forms/RadioInputType.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +30 lines, -18 lines 0 comments Download

Messages

Total messages: 60 (23 generated)
Paritosh Kumar
6 years, 3 months ago (2014-09-05 11:36:30 UTC) #2
Habib Virji
On 2014/09/05 11:36:30, paritosh.in wrote: Few things regarding description: 1. Title should be part of ...
6 years, 3 months ago (2014-09-05 13:29:13 UTC) #3
Habib Virji
Few things are not clear to me: 1. Did you test your code with by ...
6 years, 3 months ago (2014-09-05 13:50:43 UTC) #4
Paritosh Kumar
Thanks Mr. Habib. I changed the description. I will add this test case.
6 years, 3 months ago (2014-09-05 17:23:48 UTC) #5
Paritosh Kumar
6 years, 3 months ago (2014-09-08 12:10:57 UTC) #6
Habib Virji
On 2014/09/08 12:10:57, Paritosh Kumar wrote: Paritosh sorry I could not complete in today..will update ...
6 years, 3 months ago (2014-09-09 21:45:13 UTC) #7
Habib Virji
As mentioned, I am still not comfortable with the logic. Because if it is not ...
6 years, 3 months ago (2014-09-10 09:31:52 UTC) #9
Paritosh Kumar
6 years, 3 months ago (2014-09-15 06:07:43 UTC) #10
Paritosh Kumar
Updated code as per suggestion. https://codereview.chromium.org/546753002/diff/20001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html File LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html (right): https://codereview.chromium.org/546753002/diff/20001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html#newcode23 LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html:23: clickElement(document.getElementById('radio4')); // Allows clicking ...
6 years, 3 months ago (2014-09-15 08:38:29 UTC) #11
Habib Virji
https://codereview.chromium.org/546753002/diff/40001/Source/core/html/forms/RadioInputType.cpp File Source/core/html/forms/RadioInputType.cpp (right): https://codereview.chromium.org/546753002/diff/40001/Source/core/html/forms/RadioInputType.cpp#newcode105 Source/core/html/forms/RadioInputType.cpp:105: reachedAtEnd = true; How about we move this code ...
6 years, 3 months ago (2014-09-18 09:39:43 UTC) #12
Paritosh Kumar
Updated. PTAL.
6 years, 3 months ago (2014-09-22 11:42:52 UTC) #13
Habib Virji
On 2014/09/22 11:42:52, Paritosh Kumar wrote: > Updated. PTAL. Looks good. Can you remove WIP ...
6 years, 3 months ago (2014-09-23 13:10:54 UTC) #14
Paritosh Kumar
On 2014/09/23 13:10:54, Habib Virji wrote: > On 2014/09/22 11:42:52, Paritosh Kumar wrote: > > ...
6 years, 3 months ago (2014-09-23 13:12:47 UTC) #15
Paritosh Kumar
PTAL.
6 years, 3 months ago (2014-09-23 13:14:03 UTC) #17
keishi
https://codereview.chromium.org/546753002/diff/60001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html File LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html (right): https://codereview.chromium.org/546753002/diff/60001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html#newcode8 LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html:8: <script src="../../repaint/resources/text-based-repaint.js"></script> Do we need this? https://codereview.chromium.org/546753002/diff/60001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html#newcode16 LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html:16: <input ...
6 years, 3 months ago (2014-09-24 04:32:28 UTC) #18
Paritosh Kumar
Thanks Keishi. Sorry for too much delay in update. I updated the test case with ...
6 years, 2 months ago (2014-09-25 12:56:31 UTC) #20
keishi
https://codereview.chromium.org/546753002/diff/100001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html File LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html (right): https://codereview.chromium.org/546753002/diff/100001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html#newcode21 LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html:21: <script> Please incorporate the test cases from http://jsbin.com/tumeculiheku/7 https://codereview.chromium.org/546753002/diff/100001/Source/core/html/forms/RadioInputType.cpp ...
6 years, 2 months ago (2014-09-26 04:25:35 UTC) #21
Paritosh Kumar
Thanks Keishi. Apologize, I am on leave, can I update on 6th Oct?
6 years, 2 months ago (2014-10-01 04:47:04 UTC) #22
Paritosh Kumar
Apologize, I was on leave so not updating. Updated as you suggested, but unable to ...
6 years, 2 months ago (2014-10-06 08:32:24 UTC) #24
keishi
https://codereview.chromium.org/546753002/diff/140001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html File LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html (right): https://codereview.chromium.org/546753002/diff/140001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html#newcode2 LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html:2: radio-checked-LastorFirst-then-DownorUp-keyDown.html is quite confusing because it mixes CamelCaps. I ...
6 years, 2 months ago (2014-10-06 10:52:32 UTC) #25
Paritosh Kumar
https://codereview.chromium.org/546753002/diff/140001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html File LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html (right): https://codereview.chromium.org/546753002/diff/140001/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html#newcode40 LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html:40: shouldBeTrue('document.getElementById("cucumber").checked'); On 2014/10/06 10:52:32, keishi wrote: > nit: Could ...
6 years, 2 months ago (2014-10-06 12:36:33 UTC) #27
Paritosh Kumar
Thanks Keishi. Changed the name of test case file with simple and resonable name. And ...
6 years, 2 months ago (2014-10-06 12:51:30 UTC) #28
Paritosh Kumar
PTAL.
6 years, 2 months ago (2014-10-07 09:45:20 UTC) #29
keishi
lgtm https://codereview.chromium.org/546753002/diff/180001/Source/core/html/forms/RadioInputType.cpp File Source/core/html/forms/RadioInputType.cpp (right): https://codereview.chromium.org/546753002/diff/180001/Source/core/html/forms/RadioInputType.cpp#newcode73 Source/core/html/forms/RadioInputType.cpp:73: HTMLInputElement* RadioInputType::findNextFocusableRadioButton(HTMLInputElement* currentElement, bool forward) nit: Maybe findNextFocusableRadioButtonInGroup ...
6 years, 2 months ago (2014-10-07 10:27:41 UTC) #30
Paritosh Kumar
Thanks Keishi. Updated as suggested. Done.
6 years, 2 months ago (2014-10-07 11:10:27 UTC) #33
Paritosh Kumar
Please have a look.
6 years, 2 months ago (2014-10-07 11:14:58 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/546753002/200001
6 years, 2 months ago (2014-10-07 12:39:26 UTC) #37
commit-bot: I haz the power
Failed to apply patch for Source/core/html/forms/RadioInputType.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-07 12:39:45 UTC) #39
habib.virji
@paritosh: Please have a look. it is probably not updated for longtime to latest master. ...
6 years, 2 months ago (2014-10-07 12:42:42 UTC) #41
Paritosh Kumar
On 2014/10/07 12:42:42, habib.virji wrote: > @paritosh: Please have a look. it is probably not ...
6 years, 2 months ago (2014-10-07 13:36:48 UTC) #44
Paritosh Kumar
PTAL.
6 years, 2 months ago (2014-10-07 13:37:33 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/546753002/220001
6 years, 2 months ago (2014-10-13 12:14:04 UTC) #51
commit-bot: I haz the power
Failed to apply patch for Source/core/html/forms/RadioInputType.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 2 months ago (2014-10-13 12:14:34 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/546753002/310001
6 years, 2 months ago (2014-10-13 14:24:45 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/android_chromium_gn_compile_rel/builds/13488) mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/26869)
6 years, 2 months ago (2014-10-13 14:33:41 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/546753002/460001
6 years, 2 months ago (2014-10-14 08:55:13 UTC) #59
commit-bot: I haz the power
6 years, 2 months ago (2014-10-14 10:11:37 UTC) #60
Message was sent while issue was closed.
Committed patchset #11 (id:460001) as 183661

Powered by Google App Engine
This is Rietveld 408576698