Bug 1934164. Remove unused scroll grab code. r=botond

Differential Revision: https://phabricator.services.mozilla.com/D230635
This commit is contained in:
Timothy Nikkel
2024-12-05 12:05:38 +00:00
parent 9111bf40ea
commit 954d9f6331
13 changed files with 4 additions and 189 deletions

View File

@@ -4205,7 +4205,7 @@ void ScrollContainerFrame::BuildDisplayList(nsDisplayListBuilder* aBuilder,
// minimal display port.
if (aBuilder->IsPaintingToWindow()) {
if (DisplayPortUtils::HasNonMinimalDisplayPort(GetContent()) ||
mZoomableByAPZ || nsContentUtils::HasScrollgrab(GetContent())) {
mZoomableByAPZ) {
aBuilder->SetContainsNonMinimalDisplayPort();
}
}
@@ -4537,9 +4537,7 @@ bool ScrollContainerFrame::DecideScrollableLayer(
// the compositor can find the scrollable layer for async scrolling.
// If the element is marked 'scrollgrab', also force building of a layer
// so that APZ can implement scroll grabbing.
mWillBuildScrollableLayer = hasDisplayPort ||
nsContentUtils::HasScrollgrab(content) ||
mZoomableByAPZ;
mWillBuildScrollableLayer = hasDisplayPort || mZoomableByAPZ;
return mWillBuildScrollableLayer;
}
@@ -5994,8 +5992,7 @@ bool ScrollContainerFrame::IsScrollingActive() const {
nsIContent* content = GetContent();
return mHasBeenScrolledRecently || IsAlwaysActive() ||
DisplayPortUtils::HasDisplayPort(content) ||
nsContentUtils::HasScrollgrab(content);
DisplayPortUtils::HasDisplayPort(content);
}
void ScrollContainerFrame::FinishReflowForScrollbar(