[headless] Fix scaled screen zoomed window size on Linux [chromium/src : main]

2 views
Skip to first unread message

Peter Kvitek (Gerrit)

unread,
Oct 30, 2025, 8:31:36 PM (7 days ago) Oct 30
to Chromium LUCI CQ, chromium...@chromium.org, headless...@chromium.org, ozone-...@chromium.org

New activity on the change

Open in Gerrit

Related details

Attention set is empty
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: Idecf01f39cf32189a62d8b72c934a0ef125ff3a7
Gerrit-Change-Number: 7101791
Gerrit-PatchSet: 2
Gerrit-Owner: Peter Kvitek <kvi...@chromium.org>
Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
Gerrit-Comment-Date: Fri, 31 Oct 2025 00:31:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Colin Blundell (Gerrit)

unread,
Oct 31, 2025, 4:13:40 AM (6 days ago) Oct 31
to Peter Kvitek, Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, headless...@chromium.org, ozone-...@chromium.org
Attention needed from Peter Kvitek

Colin Blundell voted and added 2 comments

Votes added by Colin Blundell

Code-Review+1

2 comments

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Colin Blundell . resolved

Thanks!

File ui/ozone/platform/headless/headless_window.cc
Line 180, Patchset 3 (Latest): UpdateBounds(delegate_->ConvertRectToPixels(zoomed_bounds));
Colin Blundell . unresolved

nit: Could use a comment explaining why this conversion is necessary here

Open in Gerrit

Related details

Attention is currently required from:
  • Peter Kvitek
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: Idecf01f39cf32189a62d8b72c934a0ef125ff3a7
Gerrit-Change-Number: 7101791
Gerrit-PatchSet: 3
Gerrit-Owner: Peter Kvitek <kvi...@chromium.org>
Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
Gerrit-Attention: Peter Kvitek <kvi...@chromium.org>
Gerrit-Comment-Date: Fri, 31 Oct 2025 08:13:25 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Peter Kvitek (Gerrit)

unread,
Oct 31, 2025, 11:09:17 AM (6 days ago) Oct 31
to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, headless...@chromium.org, ozone-...@chromium.org

Peter Kvitek added 1 comment

File ui/ozone/platform/headless/headless_window.cc
Line 180, Patchset 3: UpdateBounds(delegate_->ConvertRectToPixels(zoomed_bounds));
Colin Blundell . resolved

nit: Could use a comment explaining why this conversion is necessary here

Peter Kvitek

Done

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement 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: Idecf01f39cf32189a62d8b72c934a0ef125ff3a7
    Gerrit-Change-Number: 7101791
    Gerrit-PatchSet: 4
    Gerrit-Owner: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
    Gerrit-Comment-Date: Fri, 31 Oct 2025 15:09:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Colin Blundell <blun...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Peter Kvitek (Gerrit)

    unread,
    Oct 31, 2025, 11:14:07 AM (6 days ago) Oct 31
    to Colin Blundell, Chromium LUCI CQ, chromium...@chromium.org, headless...@chromium.org, ozone-...@chromium.org

    Peter Kvitek voted Commit-Queue+2

    Commit-Queue+2
    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: Idecf01f39cf32189a62d8b72c934a0ef125ff3a7
      Gerrit-Change-Number: 7101791
      Gerrit-PatchSet: 5
      Gerrit-Owner: Peter Kvitek <kvi...@chromium.org>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
      Gerrit-Comment-Date: Fri, 31 Oct 2025 15:13:56 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      open
      diffy

      Chromium LUCI CQ (Gerrit)

      unread,
      Oct 31, 2025, 11:54:38 AM (6 days ago) Oct 31
      to Peter Kvitek, Colin Blundell, chromium...@chromium.org, headless...@chromium.org, ozone-...@chromium.org

      Chromium LUCI CQ submitted the change with unreviewed changes

      Unreviewed changes

      3 is the latest approved patch-set.
      The change was submitted with unreviewed changes in the following files:

      ```
      The name of the file: ui/ozone/platform/headless/headless_window.cc
      Insertions: 2, Deletions: 0.

      The diff is too large to show. Please review the diff.
      ```

      Change information

      Commit message:
      [headless] Fix scaled screen zoomed window size on Linux

      This CL fixes double scaling that occurs in headless mode on Linux when
      zooming a window located on a scaled screen.
      Bug: 423951863
      Change-Id: Idecf01f39cf32189a62d8b72c934a0ef125ff3a7
      Reviewed-by: Colin Blundell <blun...@chromium.org>
      Commit-Queue: Peter Kvitek <kvi...@chromium.org>
      Cr-Commit-Position: refs/heads/main@{#1538631}
      Files:
      • M chrome/browser/headless/headless_mode_protocol_browsertest.cc
      • M ui/ozone/platform/headless/headless_window.cc
      Change size: XS
      Delta: 2 files changed, 5 insertions(+), 3 deletions(-)
      Branch: refs/heads/main
      Submit Requirements:
      • requirement satisfiedCode-Review: +1 by Colin Blundell
      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: Idecf01f39cf32189a62d8b72c934a0ef125ff3a7
      Gerrit-Change-Number: 7101791
      Gerrit-PatchSet: 6
      Gerrit-Owner: Peter Kvitek <kvi...@chromium.org>
      Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
      Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
      Gerrit-Reviewer: Peter Kvitek <kvi...@chromium.org>
      open
      diffy
      satisfied_requirement
      Reply all
      Reply to author
      Forward
      0 new messages