Bug 1925476 - Remove ScrollContainerFrame::DidReflow. r=jwatt
It's not needed, ReflowFinished runs less often but still unconditionally for scroll containers when we reflow, so it's a fine place to post async work. Differential Revision: https://phabricator.services.mozilla.com/D226116
This commit is contained in:
@@ -1630,16 +1630,6 @@ void ScrollContainerFrame::Reflow(nsPresContext* aPresContext,
|
||||
PostOverflowEvent();
|
||||
}
|
||||
|
||||
void ScrollContainerFrame::DidReflow(nsPresContext* aPresContext,
|
||||
const ReflowInput* aReflowInput) {
|
||||
nsContainerFrame::DidReflow(aPresContext, aReflowInput);
|
||||
if (NeedsResnap()) {
|
||||
PostPendingResnap();
|
||||
} else {
|
||||
PresShell()->PostPendingScrollAnchorAdjustment(Anchor());
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifdef DEBUG_FRAME_DUMP
|
||||
@@ -6146,6 +6136,12 @@ bool ScrollContainerFrame::ReflowFinished() {
|
||||
|
||||
TryScheduleScrollAnimations();
|
||||
|
||||
if (NeedsResnap()) {
|
||||
PostPendingResnap();
|
||||
} else {
|
||||
PresShell()->PostPendingScrollAnchorAdjustment(Anchor());
|
||||
}
|
||||
|
||||
if (mIsRoot) {
|
||||
if (mMinimumScaleSizeChanged && PresShell()->UsesMobileViewportSizing() &&
|
||||
!PresShell()->IsResolutionUpdatedByApz()) {
|
||||
|
||||
Reference in New Issue
Block a user