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

Issue 415343003: Option Groups with display: none should not show the children option elements (Closed)

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

Description

The patch skips showing <option> elements in popupmenu that are children of <optgroup> element with "display: none". The popupmenu is handled differently on Mac. Hence the layout testcase in this patch is only for Windows/Linux.There is a separate patch[1] that covers testing on Mac. [1] https://codereview.chromium.org/447503002/ BUG=398051 TEST=fast/forms/select/popup-with-display-none-optgroup.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179790

Patch Set 1 : #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Fix Compile issues #

Patch Set 4 : Adding changes to ExternalPopupMenu #

Total comments: 2

Patch Set 5 : #

Total comments: 7

Patch Set 6 : #

Total comments: 6

Patch Set 7 : Updated #

Patch Set 8 : Fixed assert failure in linux dbg build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -9 lines) Patch
M LayoutTests/NeverFixTests View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A LayoutTests/fast/forms/select/popup-with-display-none-optgroup-expected.txt View 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/html/HTMLOptionElement.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLOptionElement.cpp View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
M Source/core/html/HTMLSelectElement.cpp View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderMenuList.cpp View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M Source/web/ExternalPopupMenu.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M Source/web/ExternalPopupMenu.cpp View 1 2 3 4 5 6 6 chunks +48 lines, -8 lines 0 comments Download
M Source/web/PopupListBox.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/PopupListBox.cpp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
spartha
6 years, 4 months ago (2014-07-31 21:25:43 UTC) #1
spartha
On 2014/07/31 21:25:43, spartha wrote: PTAL
6 years, 4 months ago (2014-07-31 21:26:05 UTC) #2
keishi
https://codereview.chromium.org/415343003/diff/100001/Source/core/rendering/RenderMenuList.cpp File Source/core/rendering/RenderMenuList.cpp (right): https://codereview.chromium.org/415343003/diff/100001/Source/core/rendering/RenderMenuList.cpp#newcode505 Source/core/rendering/RenderMenuList.cpp:505: bool displayNone = style && style->display() == NONE; This ...
6 years, 4 months ago (2014-08-01 02:01:11 UTC) #3
spartha
https://codereview.chromium.org/415343003/diff/100001/Source/core/rendering/RenderMenuList.cpp File Source/core/rendering/RenderMenuList.cpp (right): https://codereview.chromium.org/415343003/diff/100001/Source/core/rendering/RenderMenuList.cpp#newcode505 Source/core/rendering/RenderMenuList.cpp:505: bool displayNone = style && style->display() == NONE; On ...
6 years, 4 months ago (2014-08-01 09:29:16 UTC) #4
keishi
I see. I am trying to make the select element a standard shadow dom based ...
6 years, 4 months ago (2014-08-04 03:04:04 UTC) #5
spartha
Thanks! All the changes are now in the blink side. I will add a browser ...
6 years, 4 months ago (2014-08-04 15:59:02 UTC) #6
keishi
https://codereview.chromium.org/415343003/diff/160001/LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html File LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html (right): https://codereview.chromium.org/415343003/diff/160001/LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html#newcode39 LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html:39: eventSender.keyDown('downArrow', []); nit: second argument can be removed https://codereview.chromium.org/415343003/diff/160001/Source/core/html/HTMLOptionElement.cpp ...
6 years, 4 months ago (2014-08-06 03:00:21 UTC) #7
spartha
https://codereview.chromium.org/415343003/diff/160001/Source/core/html/HTMLOptionElement.cpp File Source/core/html/HTMLOptionElement.cpp (right): https://codereview.chromium.org/415343003/diff/160001/Source/core/html/HTMLOptionElement.cpp#newcode404 Source/core/html/HTMLOptionElement.cpp:404: HTMLElement* parent = Traversal<HTMLElement>::firstAncestor(*this); On 2014/08/06 03:00:20, keishi wrote: ...
6 years, 4 months ago (2014-08-06 06:23:02 UTC) #8
keishi
On 2014/08/06 06:23:02, spartha wrote: > https://codereview.chromium.org/415343003/diff/160001/Source/core/html/HTMLOptionElement.cpp > File Source/core/html/HTMLOptionElement.cpp (right): > > https://codereview.chromium.org/415343003/diff/160001/Source/core/html/HTMLOptionElement.cpp#newcode404 > ...
6 years, 4 months ago (2014-08-06 06:29:48 UTC) #9
spartha
PTAL! Thanks https://codereview.chromium.org/415343003/diff/160001/LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html File LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html (right): https://codereview.chromium.org/415343003/diff/160001/LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html#newcode39 LayoutTests/fast/forms/select/popup-with-display-none-optgroup.html:39: eventSender.keyDown('downArrow', []); On 2014/08/06 03:00:20, keishi wrote: ...
6 years, 4 months ago (2014-08-06 08:13:31 UTC) #10
keishi
LGTM. Please update the issue description.
6 years, 4 months ago (2014-08-06 08:29:08 UTC) #11
spartha
The CQ bit was checked by sudarshan.p@samsung.com
6 years, 4 months ago (2014-08-06 09:36:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/415343003/200001
6 years, 4 months ago (2014-08-06 09:36:44 UTC) #13
spartha
On 2014/08/06 09:36:44, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 4 months ago (2014-08-06 10:03:53 UTC) #14
spartha
The CQ bit was unchecked by sudarshan.p@samsung.com
6 years, 4 months ago (2014-08-06 11:58:03 UTC) #15
tkent
https://codereview.chromium.org/415343003/diff/200001/public/platform/WebVector.h File public/platform/WebVector.h (right): https://codereview.chromium.org/415343003/diff/200001/public/platform/WebVector.h#newcode155 public/platform/WebVector.h:155: void shrink(size_t size) Why is this necessary? WebVector has ...
6 years, 4 months ago (2014-08-06 12:46:08 UTC) #16
spartha
https://codereview.chromium.org/415343003/diff/200001/public/platform/WebVector.h File public/platform/WebVector.h (right): https://codereview.chromium.org/415343003/diff/200001/public/platform/WebVector.h#newcode155 public/platform/WebVector.h:155: void shrink(size_t size) On 2014/08/06 12:46:07, tkent wrote: > ...
6 years, 4 months ago (2014-08-06 13:31:09 UTC) #17
tkent
https://codereview.chromium.org/415343003/diff/200001/Source/web/ExternalPopupMenu.cpp File Source/web/ExternalPopupMenu.cpp (right): https://codereview.chromium.org/415343003/diff/200001/Source/web/ExternalPopupMenu.cpp#newcode188 Source/web/ExternalPopupMenu.cpp:188: WebVector<WebMenuItemInfo> items(static_cast<size_t>(itemCount)); This should be Vector<WebMenuItemInfo>. https://codereview.chromium.org/415343003/diff/200001/Source/web/ExternalPopupMenu.cpp#newcode219 Source/web/ExternalPopupMenu.cpp:219: info->items.swap(items); ...
6 years, 4 months ago (2014-08-07 01:13:38 UTC) #18
spartha
PTAL, thanks! https://codereview.chromium.org/415343003/diff/200001/Source/web/ExternalPopupMenu.cpp File Source/web/ExternalPopupMenu.cpp (right): https://codereview.chromium.org/415343003/diff/200001/Source/web/ExternalPopupMenu.cpp#newcode188 Source/web/ExternalPopupMenu.cpp:188: WebVector<WebMenuItemInfo> items(static_cast<size_t>(itemCount)); On 2014/08/07 01:13:38, tkent wrote: ...
6 years, 4 months ago (2014-08-07 06:57:25 UTC) #19
tkent
lgtm
6 years, 4 months ago (2014-08-07 06:58:50 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-07 08:22:58 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 08:39:37 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/20258)
6 years, 4 months ago (2014-08-07 08:39:38 UTC) #23
spartha
The CQ bit was checked by sudarshan.p@samsung.com
6 years, 4 months ago (2014-08-07 09:49:41 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/415343003/240001
6 years, 4 months ago (2014-08-07 09:50:17 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-08-07 09:58:23 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-07 10:56:54 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/20274)
6 years, 4 months ago (2014-08-07 10:56:55 UTC) #28
spartha
On 2014/08/07 10:56:55, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 4 months ago (2014-08-07 20:14:25 UTC) #29
keishi
On 2014/08/07 20:14:25, spartha wrote: > On 2014/08/07 10:56:55, I haz the power (commit-bot) wrote: ...
6 years, 4 months ago (2014-08-08 02:16:13 UTC) #30
spartha
The CQ bit was checked by sudarshan.p@samsung.com
6 years, 4 months ago (2014-08-08 04:48:01 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarshan.p@samsung.com/415343003/260001
6 years, 4 months ago (2014-08-08 04:48:40 UTC) #32
commit-bot: I haz the power
6 years, 4 months ago (2014-08-08 06:14:18 UTC) #33
Message was sent while issue was closed.
Change committed as 179790

Powered by Google App Engine
This is Rietveld 408576698