Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 84565916779faa5f54b09bc075add03a779723c1
https://github.com/WebKit/WebKit/commit/84565916779faa5f54b09bc075add03a779723c1
Author: Elika Etemad <[email protected]>
Date: 2026-07-09 (Thu, 09 Jul 2026)
Changed paths:
A
LayoutTests/fast/css/css-anchor-position/anchor-scroll-nested-chained-viewport-crash-expected.txt
A
LayoutTests/fast/css/css-anchor-position/anchor-scroll-nested-chained-viewport-crash.html
M Source/WebCore/style/AnchorPositionEvaluator.cpp
Log Message:
-----------
Fix out-of-sync m_adjustmentForViewport after snapshot removal
https://bugs.webkit.org/show_bug.cgi?id=318909
rdar://181305647
Reviewed by Kiet Ho.
Updates m_adjustmentForViewport when removing viewport snapshot
in AnchorScrollAdjuster::removeMatchingSnapshots() so that the
vector and m_adjustmentForViewport remain in sync.
*
LayoutTests/fast/css/css-anchor-position/anchor-scroll-nested-chained-viewport-crash-expected.txt:
Added.
*
LayoutTests/fast/css/css-anchor-position/anchor-scroll-nested-chained-viewport-crash.html:
Added.
* Source/WebCore/style/AnchorPositionEvaluator.cpp:
(WebCore::AnchorScrollAdjuster::removeMatchingSnapshots):
Canonical link:
https://flagged.apple.com:443/proxy?t2=ds6a8W6wP6&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE2ODE3QG1haW4=&emid=bac117a0-0ad1-477f-b65a-f7095bdef36e&c=11
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications