mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
Bug 1350925 part 1 - Reset the scrolled frame's ReflowOutput overflow areas before re-using it for another child reflow. r=dholbert
MozReview-Commit-ID: Ct57seTFsaj
This commit is contained in:
parent
5b360db4f2
commit
5a8f74cd29
@ -341,6 +341,7 @@ nsHTMLScrollFrame::TryLayout(ScrollReflowInput* aState,
|
||||
nsLayoutUtils::MarkIntrinsicISizesDirtyIfDependentOnBSize(
|
||||
mHelper.mScrolledFrame);
|
||||
}
|
||||
aKidMetrics->mOverflowAreas.Clear();
|
||||
ReflowScrolledFrame(aState, aAssumeHScroll, aAssumeVScroll, aKidMetrics,
|
||||
false);
|
||||
}
|
||||
@ -694,6 +695,7 @@ nsHTMLScrollFrame::ReflowContents(ScrollReflowInput* aState,
|
||||
insideBorderSize);
|
||||
if (nsRect(nsPoint(0, 0), insideBorderSize).Contains(scrolledRect)) {
|
||||
// Let's pretend we had no scrollbars coming in here
|
||||
kidDesiredSize.mOverflowAreas.Clear();
|
||||
ReflowScrolledFrame(aState, false, false, &kidDesiredSize, false);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user