Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7f1731bd1dc14a82e6759e4548331432dbea3fa8
https://github.com/WebKit/WebKit/commit/7f1731bd1dc14a82e6759e4548331432dbea3fa8
Author: Simon Fraser <[email protected]>
Date: 2026-02-12 (Thu, 12 Feb 2026)
Changed paths:
M
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-anchoring/contenteditable-near-cursor.tentative-expected.txt
M Source/WebCore/page/scrolling/ScrollAnchoringController.cpp
Log Message:
-----------
[Scroll anchoring] Anchoring fails if there's a focused element on the page
https://bugs.webkit.org/show_bug.cgi?id=307641
rdar://170204012
Reviewed by Abrar Rahman Protyasha.
`findPriorityCandidate()` returned true even when it hadn't found a candidate,
which broke anchoring on any page
with a focused element.
This fixes a test.
*
LayoutTests/imported/w3c/web-platform-tests/css/css-scroll-anchoring/contenteditable-near-cursor.tentative-expected.txt:
* Source/WebCore/page/scrolling/ScrollAnchoringController.cpp:
(WebCore::ScrollAnchoringController::findPriorityCandidate):
Canonical link: https://commits.webkit.org/307364@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications