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

Issue 2372913002: fixed <select> element isn't updated after its single option removing. (Closed)

Created:
4 years, 2 months ago by jhwon0415
Modified:
4 years, 2 months ago
Reviewers:
tkent, zino, skobes
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

fixed <select> element isn't updated after its single option removing. This problem is occurred because, in resetToDefaultSelection, there was no handling when firstEnabledOption and lastSelectedOption are both nullptr. So added this case. BUG=650093 Committed: https://crrev.com/238fff24c2c0dbcc3cec19a6a981b74d11928092 Cr-Commit-Position: refs/heads/master@{#421733}

Patch Set 1 #

Patch Set 2 : add handling case when first and last element is both null in resetToDefaultSelection #

Patch Set 3 : add layout test #

Total comments: 8

Patch Set 4 : refactored html fild and changed test to reference test #

Total comments: 6

Patch Set 5 : minor code cleaning #

Patch Set 6 : changed script activation point #

Total comments: 7

Patch Set 7 : LayoutTest Code updated #

Total comments: 6

Patch Set 8 : remove anchor element and adjunst some indents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -1 line) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLSelectElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (18 generated)
jhwon0415
fixed bug
4 years, 2 months ago (2016-09-27 01:23:57 UTC) #2
jhwon0415
PTAL
4 years, 2 months ago (2016-09-27 08:54:52 UTC) #7
jhwon0415
Hello, I'm newbie developer who wants to get in this chromium project. I'll be happy ...
4 years, 2 months ago (2016-09-27 16:24:03 UTC) #14
tkent
Thank you for woking on this! C++ code change looks ok. On 2016/09/27 at 16:24:03, ...
4 years, 2 months ago (2016-09-28 05:19:40 UTC) #15
jhwon0415
I added layout test this time. I couldn't get proper result by using unit test ...
4 years, 2 months ago (2016-09-28 15:28:50 UTC) #16
zino
I'm not owner but I left some comments for layout test. https://codereview.chromium.org/2372913002/diff/40001/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.txt File third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.txt (right): ...
4 years, 2 months ago (2016-09-28 16:10:05 UTC) #17
jhwon0415
As zino mentioned, I refactored code and changed test to reference test. It goes well. ...
4 years, 2 months ago (2016-09-28 16:54:05 UTC) #18
zino
I left some minor comments. Thanks. https://codereview.chromium.org/2372913002/diff/60001/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html File third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html (right): https://codereview.chromium.org/2372913002/diff/60001/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html#newcode9 third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html:9: <select id="s"></select> id ...
4 years, 2 months ago (2016-09-28 17:07:15 UTC) #19
jhwon0415
Cleaned code as referred. Thanks!
4 years, 2 months ago (2016-09-28 17:17:43 UTC) #20
jhwon0415
Changed remove script's activation point to specific point. Now remove is called when window calls ...
4 years, 2 months ago (2016-09-28 17:41:39 UTC) #21
zino
On 2016/09/28 17:17:43, jhwon0415 wrote: > Cleaned code as referred. > Thanks! looks good. Please ...
4 years, 2 months ago (2016-09-28 17:41:50 UTC) #22
tkent
https://codereview.chromium.org/2372913002/diff/100001/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html File third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html (right): https://codereview.chromium.org/2372913002/diff/100001/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html#newcode1 third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html:1: <title>Test for HTMLSelectElement.remove() on an Options object</title> Please add ...
4 years, 2 months ago (2016-09-28 23:13:27 UTC) #23
jhwon0415
Thanks for reviewing. I changed code as mentioned. Then, this time, anchor elements looks unnecessary ...
4 years, 2 months ago (2016-09-29 01:12:05 UTC) #24
tkent
https://codereview.chromium.org/2372913002/diff/120001/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html File third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html (right): https://codereview.chromium.org/2372913002/diff/120001/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html#newcode1 third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html:1: <title>Test for HTMLSelectElement.remove() on an Options object</title> Please add ...
4 years, 2 months ago (2016-09-29 01:14:44 UTC) #25
jhwon0415
Sorry for doctype in expceted.html, i forgot to change it. removed anchor and made some ...
4 years, 2 months ago (2016-09-29 01:21:17 UTC) #26
tkent
lgtm
4 years, 2 months ago (2016-09-29 03:08:18 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2372913002/140001
4 years, 2 months ago (2016-09-29 03:08:33 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 2 months ago (2016-09-29 03:14:30 UTC) #35
commit-bot: I haz the power
4 years, 2 months ago (2016-09-29 03:17:09 UTC) #37
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/238fff24c2c0dbcc3cec19a6a981b74d11928092
Cr-Commit-Position: refs/heads/master@{#421733}

Powered by Google App Engine
This is Rietveld 408576698