tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit f6c606113e585b446b774a8bfd9d0b060ec7a826
parent 00e7e9bc54dd032155b4b8cf24dfcc6ca48374ed
Author: Botond Ballo <botond@mozilla.com>
Date:   Thu, 13 Nov 2025 04:59:07 +0000

Bug 1730749 - Remove the ASR override for sticky items. r=mstange,layout-reviewers,emilio

The use of this override for sticky content was essentially a workaround
for not having sticky ASRs. As we now have them, we get the desired
spatial id the usual way, mapping from ASR to spatial id.

Differential Revision: https://phabricator.services.mozilla.com/D254155

Diffstat:
Mlayout/painting/nsDisplayList.cpp | 5-----
1 file changed, 0 insertions(+), 5 deletions(-)

diff --git a/layout/painting/nsDisplayList.cpp b/layout/painting/nsDisplayList.cpp @@ -5854,7 +5854,6 @@ bool nsDisplayStickyPosition::CreateWebRenderCommands( auto spatialId = aBuilder.GetSpatialIdForDefinedStickyLayer(stickyAsr); MOZ_ASSERT(spatialId.isSome()); saccHelper.emplace(aBuilder, *spatialId); - aManager->CommandBuilder().PushOverrideForASR(mContainerASR, *spatialId); } { @@ -5867,10 +5866,6 @@ bool nsDisplayStickyPosition::CreateWebRenderCommands( aManager, aDisplayListBuilder); } - if (stickyScrollContainer) { - aManager->CommandBuilder().PopOverrideForASR(mContainerASR); - } - return true; }