Fix selection handles hidden when line-height exceeds input height [chromium/src : main]

0 views
Skip to first unread message

Helmut Januschka (Gerrit)

unread,
Feb 23, 2026, 6:30:39 PM (5 days ago) Feb 23
to Helmut Januschka, Florin Malita, Jonathan Ross, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
Attention needed from Florin Malita and Jonathan Ross

Helmut Januschka added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Helmut Januschka . resolved

dear reviewers thanks in advance for your time and patience,
this fixes the bug, see screenshots in the issue.
please let me know if you want me to address anything!

Open in Gerrit

Related details

Attention is currently required from:
  • Florin Malita
  • Jonathan Ross
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I885c4564595ece776efd6036988ce862f6c1131c
Gerrit-Change-Number: 7596201
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Jonathan Ross <jon...@chromium.org>
Gerrit-Attention: Florin Malita <fma...@chromium.org>
Gerrit-Comment-Date: Mon, 23 Feb 2026 23:30:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Jonathan Ross (Gerrit)

unread,
Feb 24, 2026, 9:13:52 AM (4 days ago) Feb 24
to Helmut Januschka, Philip Rogers, Florin Malita, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
Attention needed from Florin Malita, Helmut Januschka and Philip Rogers

Jonathan Ross added 1 comment

Patchset-level comments
Jonathan Ross . resolved

+pdr@ who reviewed the original CL: https://chromium-review.googlesource.com/c/chromium/src/+/6828942 as they have more context on this class

Open in Gerrit

Related details

Attention is currently required from:
  • Florin Malita
  • Helmut Januschka
  • Philip Rogers
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I885c4564595ece776efd6036988ce862f6c1131c
Gerrit-Change-Number: 7596201
Gerrit-PatchSet: 1
Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
Gerrit-CC: Stephen Chenney <sche...@chromium.org>
Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
Gerrit-Attention: Philip Rogers <p...@chromium.org>
Gerrit-Attention: Florin Malita <fma...@chromium.org>
Gerrit-Comment-Date: Tue, 24 Feb 2026 14:13:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Philip Rogers (Gerrit)

unread,
Feb 25, 2026, 7:28:08 PM (3 days ago) Feb 25
to Helmut Januschka, Florin Malita, Jonathan Ross, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
Attention needed from Florin Malita and Helmut Januschka

Philip Rogers added 3 comments

Commit Message
Line 7, Patchset 1 (Latest):Fix selection handles hidden when line-height exceeds input height
Philip Rogers . unresolved

Did you check if this works end-to-end? I think the code in ComputeViewportSelectionBound will hide these handles? Or maybe that code won't for some reason?

File third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.cc
Line 1565, Patchset 1 (Latest): // Use the full selection edge for visibility testing. The handle should be
Philip Rogers . unresolved

You removed the comment about ComputeViewportSelectionBound. Is that still important to keep?

Line 1569, Patchset 1 (Latest): gfx::Rect sample = gfx::BoundingRect(bound.edge_start, bound.edge_end);
Philip Rogers . unresolved

Can you wrap this in a feature check of some kind (similar to the SelectionHandleWithBottomClippedEnabled code you removed)? We've had issues with regressions in this area, and having a runtime enabled feature will let us revert back to the code before your change in an emergency situation.

If this change is entirely in blink/, a RuntimeEnabledFeature is easiest. If this needs to touch cc code too, cc/base/features.h may be the best.

Open in Gerrit

Related details

Attention is currently required from:
  • Florin Malita
  • Helmut Januschka
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I885c4564595ece776efd6036988ce862f6c1131c
    Gerrit-Change-Number: 7596201
    Gerrit-PatchSet: 1
    Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
    Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
    Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
    Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
    Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
    Gerrit-CC: Stephen Chenney <sche...@chromium.org>
    Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
    Gerrit-Attention: Florin Malita <fma...@chromium.org>
    Gerrit-Comment-Date: Thu, 26 Feb 2026 00:28:02 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Helmut Januschka (Gerrit)

    unread,
    Feb 26, 2026, 5:21:04 PM (2 days ago) Feb 26
    to Helmut Januschka, Philip Rogers, Florin Malita, Jonathan Ross, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Florin Malita and Philip Rogers

    Helmut Januschka added 3 comments

    Commit Message
    Line 7, Patchset 1:Fix selection handles hidden when line-height exceeds input height
    Philip Rogers . resolved

    Did you check if this works end-to-end? I think the code in ComputeViewportSelectionBound will hide these handles? Or maybe that code won't for some reason?

    Helmut Januschka

    tried with and without patch, see screenshot in issue (https://issues.chromium.org/issues/451833352)

    File third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.cc
    Line 1565, Patchset 1: // Use the full selection edge for visibility testing. The handle should be
    Philip Rogers . resolved

    You removed the comment about ComputeViewportSelectionBound. Is that still important to keep?

    Helmut Januschka

    sorry restored the ComputeViewportSelectionBound() reference and clarified the intent.

    Line 1569, Patchset 1: gfx::Rect sample = gfx::BoundingRect(bound.edge_start, bound.edge_end);
    Philip Rogers . resolved

    Can you wrap this in a feature check of some kind (similar to the SelectionHandleWithBottomClippedEnabled code you removed)? We've had issues with regressions in this area, and having a runtime enabled feature will let us revert back to the code before your change in an emergency situation.

    If this change is entirely in blink/, a RuntimeEnabledFeature is easiest. If this needs to touch cc code too, cc/base/features.h may be the best.

    Helmut Januschka

    done using `SelectionEdgeVisibilityUsesFullEdge`

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Florin Malita
    • Philip Rogers
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: I885c4564595ece776efd6036988ce862f6c1131c
      Gerrit-Change-Number: 7596201
      Gerrit-PatchSet: 2
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-Attention: Philip Rogers <p...@chromium.org>
      Gerrit-Attention: Florin Malita <fma...@chromium.org>
      Gerrit-Comment-Date: Thu, 26 Feb 2026 22:20:45 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Philip Rogers <p...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Philip Rogers (Gerrit)

      unread,
      Feb 26, 2026, 5:48:50 PM (2 days ago) Feb 26
      to Helmut Januschka, Florin Malita, Jonathan Ross, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Florin Malita and Helmut Januschka

      Philip Rogers voted and added 1 comment

      Votes added by Philip Rogers

      Code-Review+1

      1 comment

      Patchset-level comments
      File-level comment, Patchset 2 (Latest):
      Philip Rogers . resolved

      Thanks! LGTM

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Florin Malita
      • Helmut Januschka
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement 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: I885c4564595ece776efd6036988ce862f6c1131c
      Gerrit-Change-Number: 7596201
      Gerrit-PatchSet: 2
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Attention: Florin Malita <fma...@chromium.org>
      Gerrit-Comment-Date: Thu, 26 Feb 2026 22:48:43 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Helmut Januschka (Gerrit)

      unread,
      Feb 26, 2026, 6:53:06 PM (2 days ago) Feb 26
      to Helmut Januschka, Philip Rogers, Florin Malita, Jonathan Ross, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Florin Malita

      Helmut Januschka voted Commit-Queue+2

      Commit-Queue+2
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Florin Malita
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement 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: I885c4564595ece776efd6036988ce862f6c1131c
      Gerrit-Change-Number: 7596201
      Gerrit-PatchSet: 2
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-Attention: Florin Malita <fma...@chromium.org>
      Gerrit-Comment-Date: Thu, 26 Feb 2026 23:52:45 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Feb 26, 2026, 7:13:26 PM (2 days ago) Feb 26
      to Helmut Januschka, Philip Rogers, Florin Malita, Jonathan Ross, AyeAye, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org

      Chromium LUCI CQ submitted the change

      Change information

      Commit message:
      Fix selection handles hidden when line-height exceeds input height

      Use the full selection edge for visibility testing instead of a 1px sample
      near edge_end, so handles show when any part of the edge is within the clip.
      Bug: 451833352
      Change-Id: I885c4564595ece776efd6036988ce862f6c1131c
      Reviewed-by: Philip Rogers <p...@chromium.org>
      Commit-Queue: Helmut Januschka <hel...@januschka.com>
      Cr-Commit-Position: refs/heads/main@{#1591175}
      Files:
      • M third_party/blink/renderer/core/paint/selection_bounds_recorder_test.cc
      • M third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.cc
      • M third_party/blink/renderer/platform/runtime_enabled_features.json5
      Change size: M
      Delta: 3 files changed, 58 insertions(+), 13 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Philip Rogers
      Open in Gerrit
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: merged
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I885c4564595ece776efd6036988ce862f6c1131c
      Gerrit-Change-Number: 7596201
      Gerrit-PatchSet: 3
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      open
      diffy
      satisfied_requirement

      Xianzhu Wang (Gerrit)

      unread,
      Feb 26, 2026, 7:42:39 PM (2 days ago) Feb 26
      to Helmut Januschka, Chromium LUCI CQ, Philip Rogers, Florin Malita, Jonathan Ross, AyeAye, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Helmut Januschka

      Xianzhu Wang added 1 comment

      File third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.cc
      Line 1574, Patchset 3 (Latest): sample = gfx::BoundingRect(bound.edge_start, bound.edge_end);
      Xianzhu Wang . unresolved

      This behavior will be inconsistent with the CC side behavior, which will make the visibility of selection handles along composited layer bounds behaves differently. For example, in the composited code path, selections with only the top half visible won't have selection handles. Also when only the top of the selection is visible, the selection handle will have a distance to the visible selection, which looks weird.

      I think at least we need to keep the two code paths behave the same, i.e. also implement this behavior in cc.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Helmut Januschka
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement 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: I885c4564595ece776efd6036988ce862f6c1131c
      Gerrit-Change-Number: 7596201
      Gerrit-PatchSet: 3
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-CC: Xianzhu Wang <wangx...@chromium.org>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Comment-Date: Fri, 27 Feb 2026 00:42:33 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy

      Helmut Januschka (Gerrit)

      unread,
      Feb 27, 2026, 8:08:39 PM (yesterday) Feb 27
      to Helmut Januschka, Chromium LUCI CQ, Xianzhu Wang, Philip Rogers, Florin Malita, Jonathan Ross, AyeAye, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org

      Helmut Januschka added 1 comment

      File third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.cc
      Line 1574, Patchset 3 (Latest): sample = gfx::BoundingRect(bound.edge_start, bound.edge_end);
      Xianzhu Wang . resolved

      This behavior will be inconsistent with the CC side behavior, which will make the visibility of selection handles along composited layer bounds behaves differently. For example, in the composited code path, selections with only the top half visible won't have selection handles. Also when only the top of the selection is visible, the selection handle will have a distance to the visible selection, which looks weird.

      I think at least we need to keep the two code paths behave the same, i.e. also implement this behavior in cc.

      Helmut Januschka

      @wangx...@chromium.org oh, thanks for the explanation, will do a follow up!

      Open in Gerrit

      Related details

      Attention set is empty
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement 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: I885c4564595ece776efd6036988ce862f6c1131c
      Gerrit-Change-Number: 7596201
      Gerrit-PatchSet: 3
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-CC: Xianzhu Wang <wangx...@chromium.org>
      Gerrit-Comment-Date: Sat, 28 Feb 2026 01:08:18 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Xianzhu Wang <wangx...@chromium.org>
      satisfied_requirement
      open
      diffy

      Helmut Januschka (Gerrit)

      unread,
      5:13 AM (16 hours ago) 5:13 AM
      to Helmut Januschka, Chromium LUCI CQ, Xianzhu Wang, Philip Rogers, Florin Malita, Jonathan Ross, AyeAye, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org

      Helmut Januschka added 1 comment

      File third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.cc
      Line 1574, Patchset 3 (Latest): sample = gfx::BoundingRect(bound.edge_start, bound.edge_end);
      Xianzhu Wang . resolved

      This behavior will be inconsistent with the CC side behavior, which will make the visibility of selection handles along composited layer bounds behaves differently. For example, in the composited code path, selections with only the top half visible won't have selection handles. Also when only the top of the selection is visible, the selection handle will have a distance to the visible selection, which looks weird.

      I think at least we need to keep the two code paths behave the same, i.e. also implement this behavior in cc.

      Helmut Januschka

      @wangx...@chromium.org oh, thanks for the explanation, will do a follow up!

      Gerrit-Comment-Date: Sat, 28 Feb 2026 10:13:13 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Helmut Januschka <hel...@januschka.com>
      Comment-In-Reply-To: Xianzhu Wang <wangx...@chromium.org>
      satisfied_requirement
      open
      diffy

      Xianzhu Wang (Gerrit)

      unread,
      7:21 PM (1 hour ago) 7:21 PM
      to Helmut Januschka, Chromium LUCI CQ, Philip Rogers, Florin Malita, Jonathan Ross, AyeAye, chromium...@chromium.org, Dirk Schulze, Stephen Chenney, blink-rev...@chromium.org, blink-reviews-p...@chromium.org, blink-...@chromium.org, drott+bl...@chromium.org, fmalit...@chromium.org, fserb...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Helmut Januschka

      Xianzhu Wang added 1 comment

      File third_party/blink/renderer/platform/graphics/compositing/paint_chunks_to_cc_layer.cc
      Line 1579, Patchset 3 (Latest): return start < end ? -1 : start > end ? 1 : 0;
      Xianzhu Wang . unresolved

      Another method is to change `-1` and `1` here to something like `4` to cover large device scale factors. That would be a simplication of my original idea to plumb device scale factor here. I think this is better than the new behavior with gap between the selection and the selection handle when the bottom of the text is clipped. Is there any chance you could test this method?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Helmut Januschka
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement 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: I885c4564595ece776efd6036988ce862f6c1131c
      Gerrit-Change-Number: 7596201
      Gerrit-PatchSet: 3
      Gerrit-Owner: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Florin Malita <fma...@chromium.org>
      Gerrit-Reviewer: Helmut Januschka <hel...@januschka.com>
      Gerrit-Reviewer: Jonathan Ross <jon...@chromium.org>
      Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
      Gerrit-CC: Dirk Schulze <dsch...@chromium.org>
      Gerrit-CC: Stephen Chenney <sche...@chromium.org>
      Gerrit-CC: Xianzhu Wang <wangx...@chromium.org>
      Gerrit-Attention: Helmut Januschka <hel...@januschka.com>
      Gerrit-Comment-Date: Sun, 01 Mar 2026 00:20:51 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages