Backed out changeset 5b6fb5d517d3 (bug 1922904) for causing wpt failures at prefer-targeted-element-positioned.html. CLOSED TREE

This commit is contained in:
Goloman Adrian
2024-11-02 06:23:09 +02:00
parent ee2b585283
commit 9d883be990
4 changed files with 4 additions and 143 deletions

View File

@@ -5024,13 +5024,6 @@ void ScrollContainerFrame::ScrollSnap(const nsPoint& aDestination,
// site using `GetScrollPosition()` as |aStartPos|.
if (auto snapDestination = GetSnapPointForDestination(
ScrollUnit::DEVICE_PIXELS, snapFlags, pos, destination)) {
// Bail out if there's no scroll position change to do a workaround for bug
// 1665932 (even if the __layout__ scroll position is unchanged, the
// corresponding scroll offset update will change the __visual__ scroll
// offset in APZ).
if (snapDestination->mPosition == destination) {
return;
}
destination = snapDestination->mPosition;
ScrollToWithOrigin(
destination, nullptr /* range */,