Remove special layout code for customizable select [chromium/src : main]

0 views
Skip to first unread message

Joey Arhar (Gerrit)

unread,
Jan 30, 2025, 3:29:54 PMJan 30
to Kent Tamura, Kevin Babbitt, Alexis Menard, (Julie)Jeongeun Kim, AyeAye, Chromium LUCI CQ, aleventhal...@chromium.org, dtseng...@chromium.org, yuzo+...@chromium.org, francisjp...@google.com, blink-re...@chromium.org, devtools-re...@chromium.org, nektar...@chromium.org, abigailbk...@google.com, biciogl...@google.com, apavlo...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Kent Tamura

Joey Arhar added 1 comment

File third_party/blink/renderer/core/html/forms/html_select_element.cc
Line 791, Patchset 5 (Latest): return MakeGarbageCollected<LayoutBlockFlow>(this);
Joey Arhar . unresolved

Hey tkent, do you know why this method is hard coded to return a LayoutFlexibleBox/LayoutBlockFlow, or the answers to my questions in the comments?

Open in Gerrit

Related details

Attention is currently required from:
  • Kent Tamura
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia18b10714cf437e971f7dc265565835a3fbf84e9
Gerrit-Change-Number: 6208372
Gerrit-PatchSet: 5
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
Gerrit-Attention: Kent Tamura <tk...@chromium.org>
Gerrit-Comment-Date: Thu, 30 Jan 2025 20:29:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Jan 30, 2025, 3:30:55 PMJan 30
to Kent Tamura, Kevin Babbitt, Alexis Menard, (Julie)Jeongeun Kim, AyeAye, Chromium LUCI CQ, aleventhal...@chromium.org, dtseng...@chromium.org, yuzo+...@chromium.org, francisjp...@google.com, blink-re...@chromium.org, devtools-re...@chromium.org, nektar...@chromium.org, abigailbk...@google.com, biciogl...@google.com, apavlo...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Kent Tamura

Joey Arhar added 1 comment

File third_party/blink/renderer/core/layout/flex/layout_flexible_box.cc
File-level comment, Patchset 5 (Latest):
Joey Arhar . unresolved

I thought it would be a good idea to remove this code since we now have other ways of doing this in the UA stylesheet, but do you agree?

Gerrit-Comment-Date: Thu, 30 Jan 2025 20:30:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Kent Tamura (Gerrit)

unread,
Jan 30, 2025, 7:24:08 PMJan 30
to Kent Tamura, Kevin Babbitt, Alexis Menard, (Julie)Jeongeun Kim, AyeAye, Chromium LUCI CQ, aleventhal...@chromium.org, dtseng...@chromium.org, yuzo+...@chromium.org, francisjp...@google.com, blink-re...@chromium.org, devtools-re...@chromium.org, nektar...@chromium.org, abigailbk...@google.com, biciogl...@google.com, apavlo...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Joey Arhar

Kent Tamura added 2 comments

File third_party/blink/renderer/core/html/forms/html_select_element.cc
Line 791, Patchset 5 (Latest): return MakeGarbageCollected<LayoutBlockFlow>(this);
Joey Arhar . unresolved

Hey tkent, do you know why this method is hard coded to return a LayoutFlexibleBox/LayoutBlockFlow, or the answers to my questions in the comments?

Kent Tamura

I think this avoids breaking <select>'s internal layout. Without this, it would be broken if a user specifies non-`flex` values to `display` property.

It would be possible to remove this hard code by `!important` in the UA stylesheet, or adding a flex container in the UA shadow tree.

File third_party/blink/renderer/core/layout/flex/layout_flexible_box.cc
Joey Arhar . unresolved

I thought it would be a good idea to remove this code since we now have other ways of doing this in the UA stylesheet, but do you agree?

Kent Tamura

Of course it's ok to remove this if we have better ways.

Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia18b10714cf437e971f7dc265565835a3fbf84e9
Gerrit-Change-Number: 6208372
Gerrit-PatchSet: 5
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Fri, 31 Jan 2025 00:23:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
May 28, 2025, 6:38:49 PMMay 28
to Kent Tamura, Kevin Babbitt, Alexis Menard, (Julie)Jeongeun Kim, AyeAye, Chromium LUCI CQ, blink-revie...@chromium.org, aleventhal...@chromium.org, dtseng...@chromium.org, yuzo+...@chromium.org, francisjp...@google.com, blink-re...@chromium.org, devtools-re...@chromium.org, nektar...@chromium.org, abigailbk...@google.com, biciogl...@google.com, apavlo...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org

Joey Arhar added 3 comments

Patchset-level comments
File third_party/blink/renderer/core/html/forms/html_select_element.cc
Line 791, Patchset 5: return MakeGarbageCollected<LayoutBlockFlow>(this);
Joey Arhar . resolved

Hey tkent, do you know why this method is hard coded to return a LayoutFlexibleBox/LayoutBlockFlow, or the answers to my questions in the comments?

Kent Tamura

I think this avoids breaking <select>'s internal layout. Without this, it would be broken if a user specifies non-`flex` values to `display` property.

It would be possible to remove this hard code by `!important` in the UA stylesheet, or adding a flex container in the UA shadow tree.

Joey Arhar

Thanks, I'm going to avoid changing the web-exposed computed value for now.

File third_party/blink/renderer/core/layout/flex/layout_flexible_box.cc
File-level comment, Patchset 5:
Joey Arhar . resolved

I thought it would be a good idea to remove this code since we now have other ways of doing this in the UA stylesheet, but do you agree?

Kent Tamura

Of course it's ok to remove this if we have better ways.

Joey Arhar

Thanks!

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia18b10714cf437e971f7dc265565835a3fbf84e9
Gerrit-Change-Number: 6208372
Gerrit-PatchSet: 11
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
Gerrit-Comment-Date: Wed, 28 May 2025 22:38:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kent Tamura <tk...@chromium.org>
Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

AI Code Reviewer (Gerrit)

unread,
Aug 22, 2025, 4:51:53 PMAug 22
to Kent Tamura, Kevin Babbitt, Alexis Menard, (Julie)Jeongeun Kim, AyeAye, Chromium LUCI CQ, blink-revie...@chromium.org, aleventhal...@chromium.org, dtseng...@chromium.org, yuzo+...@chromium.org, francisjp...@google.com, blink-re...@chromium.org, devtools-re...@chromium.org, nektar...@chromium.org, abigailbk...@google.com, biciogl...@google.com, apavlo...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org
Attention needed from Joey Arhar

AI Code Reviewer added 1 comment

File third_party/blink/renderer/core/html/forms/html_select_element.h
Line 374, Patchset 14 (Latest): void ChildrenChanged(const ChildrenChange& change) override;
AI Code Reviewer . unresolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. The parameter name 'change' can be omitted here as the type 'ChildrenChange' is self-descriptive.
***

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options: \
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason \
\
This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent). \
AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve. \
[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
Open in Gerrit

Related details

Attention is currently required from:
  • Joey Arhar
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ia18b10714cf437e971f7dc265565835a3fbf84e9
Gerrit-Change-Number: 6208372
Gerrit-PatchSet: 14
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
Gerrit-CC: Alexis Menard <alexis...@intel.com>
Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
Gerrit-Attention: Joey Arhar <jar...@chromium.org>
Gerrit-Comment-Date: Fri, 22 Aug 2025 20:51:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joey Arhar (Gerrit)

unread,
Dec 29, 2025, 7:23:34 PM (yesterday) Dec 29
to AI Code Reviewer, Kent Tamura, Kevin Babbitt, Menard, Alexis, (Julie)Jeongeun Kim, AyeAye, Chromium LUCI CQ, mac-r...@chromium.org, blink-revie...@chromium.org, aleventhal...@chromium.org, dtseng...@chromium.org, yuzo+...@chromium.org, francisjp...@google.com, blink-re...@chromium.org, devtools-re...@chromium.org, nektar...@chromium.org, abigailbk...@google.com, biciogl...@google.com, apavlo...@chromium.org, josiah...@chromium.org, kyungjunle...@google.com, blink-rev...@chromium.org, blink-rev...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, zol...@webkit.org

Joey Arhar added 3 comments

Patchset-level comments

Note to self: link to this bug: https://issues.chromium.org/issues/389585531

Joey Arhar

Done

File third_party/blink/renderer/core/css/invalidation/rule_invalidation_data_visitor.cc
Line 1665, Patchset 21 (Latest): case CSSSelector::kPseudoSelectHasSlottedButton:
Joey Arhar . resolved

It turns out that this is the reason that the accessibility test was failing, and I didn't figure it out for almost a year >_>

File third_party/blink/renderer/core/html/forms/html_select_element.h
Line 374, Patchset 14: void ChildrenChanged(const ChildrenChange& change) override;
AI Code Reviewer . resolved

Blink Style Guide: Naming - May leave obvious parameter names out of function declarations. The parameter name 'change' can be omitted here as the type 'ChildrenChange' is self-descriptive.
***

_To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options: \
**Done** | **Won't fix**: reason | **b/<bug_id>** | **Invalid:** reason \
\
This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent). \
AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve. \
[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
Joey Arhar

Acknowledged

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ia18b10714cf437e971f7dc265565835a3fbf84e9
    Gerrit-Change-Number: 6208372
    Gerrit-PatchSet: 21
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Kent Tamura <tk...@chromium.org>
    Gerrit-CC: (Julie)Jeongeun Kim <je_jul...@chromium.org>
    Gerrit-CC: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    Gerrit-CC: Akihiro Ota <akihi...@chromium.org>
    Gerrit-CC: Kevin Babbitt <kbab...@microsoft.com>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-CC: Nektarios Paisios <nek...@chromium.org>
    Gerrit-Comment-Date: Tue, 30 Dec 2025 00:23:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
    Comment-In-Reply-To: AI Code Reviewer <peep-gen...@system.gserviceaccount.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages