Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ec2a243b32369afe50ead636e926f370ae5ad441
https://github.com/WebKit/WebKit/commit/ec2a243b32369afe50ead636e926f370ae5ad441
Author: Kiet Ho <[email protected]>
Date: 2026-05-19 (Tue, 19 May 2026)
Changed paths:
M Source/WebCore/page/IntersectionObserver.cpp
Log Message:
-----------
[intersection-observer] Compute rootUsedZoom only when root/margin bounds are
applied
rdar://177384010
https://bugs.webkit.org/show_bug.cgi?id=315057
Reviewed by Simon Fraser.
In IntersectionObserver::computeIntersectionState, rootUsedZoom is only used
when
root or margin bounds are applied, which is when the root and target frame are
same-origin. This patch computes rootUsedZoom only when it's needed, because
we can make assumption on where to get it. Since it's only needed when the
frames are same-origin, we can pull it from the root's renderer style. The root
renderer should be available, as the root is in the same process as the target
(in Site Isolation mode)
Refactoring, tested by existing test suite.
* Source/WebCore/page/IntersectionObserver.cpp:
(WebCore::IntersectionObserver::computeIntersectionState const):
Canonical link: https://commits.webkit.org/313510@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications