Fix Float-cast-overflow in IO rootMargin [chromium/src : main]

0 views
Skip to first unread message

Philip Rogers (Gerrit)

unread,
Jan 9, 2026, 7:47:57 PM (20 hours ago) Jan 9
to Stefan Zager, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Stefan Zager

Philip Rogers voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Stefan Zager
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: If2bb452673c4dd190a23248036b75b5f624b4711
Gerrit-Change-Number: 7428240
Gerrit-PatchSet: 1
Gerrit-Owner: Philip Rogers <p...@chromium.org>
Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
Gerrit-Reviewer: Stefan Zager <sza...@chromium.org>
Gerrit-Attention: Stefan Zager <sza...@chromium.org>
Gerrit-Comment-Date: Sat, 10 Jan 2026 00:47:48 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Stefan Zager (Gerrit)

unread,
Jan 9, 2026, 10:02:24 PM (18 hours ago) Jan 9
to Philip Rogers, Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org
Attention needed from Philip Rogers

Stefan Zager voted and added 1 comment

Votes added by Stefan Zager

Code-Review+1
Commit-Queue+2

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Stefan Zager . resolved

lgtm

Open in Gerrit

Related details

Attention is currently required from:
  • Philip Rogers
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: If2bb452673c4dd190a23248036b75b5f624b4711
    Gerrit-Change-Number: 7428240
    Gerrit-PatchSet: 1
    Gerrit-Owner: Philip Rogers <p...@chromium.org>
    Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
    Gerrit-Reviewer: Stefan Zager <sza...@chromium.org>
    Gerrit-Attention: Philip Rogers <p...@chromium.org>
    Gerrit-Comment-Date: Sat, 10 Jan 2026 03:02:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Jan 9, 2026, 10:05:57 PM (18 hours ago) Jan 9
    to Philip Rogers, Stefan Zager, chromium...@chromium.org, blink-...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Fix Float-cast-overflow in IO rootMargin

    Percentages in rootMargin can exceed the range of a 32-bit integer,
    causing a float-cast-overflow when IntValue() is called. This patch
    fixes the issue by using Percent(), which returns a float, for
    percentage values.
    Fixed: 441524792
    Change-Id: If2bb452673c4dd190a23248036b75b5f624b4711
    Auto-Submit: Philip Rogers <p...@chromium.org>
    Commit-Queue: Stefan Zager <sza...@chromium.org>
    Reviewed-by: Stefan Zager <sza...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1567337}
    Files:
    • M third_party/blink/renderer/core/intersection_observer/intersection_observer.cc
    • M third_party/blink/renderer/core/intersection_observer/intersection_observer_test.cc
    Change size: S
    Delta: 2 files changed, 20 insertions(+), 1 deletion(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Stefan Zager
    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: If2bb452673c4dd190a23248036b75b5f624b4711
    Gerrit-Change-Number: 7428240
    Gerrit-PatchSet: 2
    Gerrit-Owner: Philip Rogers <p...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Philip Rogers <p...@chromium.org>
    Gerrit-Reviewer: Stefan Zager <sza...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages