Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a6a3d713e48e04c17b206efec090c455e8cbd3db
https://github.com/WebKit/WebKit/commit/a6a3d713e48e04c17b206efec090c455e8cbd3db
Author: Simon Fraser <[email protected]>
Date: 2026-03-06 (Fri, 06 Mar 2026)
Changed paths:
M Source/WebCore/dom/Element.cpp
M Source/WebCore/page/scrolling/ScrollAnchoringController.cpp
Log Message:
-----------
[Scroll anchoring] Avoid no-op adjustments due to rounding
https://bugs.webkit.org/show_bug.cgi?id=309324
rdar://171862722
Reviewed by Alan Baradlay.
Return early from `adjustScrollPositionForAnchoring()` if the adjustment rounds
to zero to avoid issuing
no-op adjustments.
This has no detectable behavior change.
* Source/WebCore/dom/Element.cpp:
(WebCore::Element::setScrollLeft): Drive-by addition of logging.
(WebCore::Element::setScrollTop): Ditto.
* Source/WebCore/page/scrolling/ScrollAnchoringController.cpp:
(WebCore::ScrollAnchoringController::adjustScrollPositionForAnchoring):
Canonical link: https://commits.webkit.org/308802@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications