Bug 1934164. Remove unused scroll grab code. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D230635
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user