mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 23:08:39 +09:00
import from mozilla: Bug 1350925 part 1 - Reset the scrolled frame's ReflowOutput overflow areas before re-using it for another child reflow. r=dholbert a=gchang (8c70d11ecd1)
This commit is contained in:
parent
ebca3ddb1d
commit
7f4a92ec55
1 changed files with 2 additions and 0 deletions
|
|
@ -365,6 +365,7 @@ nsHTMLScrollFrame::TryLayout(ScrollReflowInput* aState,
|
|||
nsLayoutUtils::MarkIntrinsicISizesDirtyIfDependentOnBSize(
|
||||
mHelper.mScrolledFrame);
|
||||
}
|
||||
aKidMetrics->mOverflowAreas.Clear();
|
||||
ReflowScrolledFrame(aState, aAssumeHScroll, aAssumeVScroll, aKidMetrics,
|
||||
false);
|
||||
}
|
||||
|
|
@ -719,6 +720,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…
Add table
Add a link
Reference in a new issue