diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 8328f70da5..f7eeef2f42 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -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); } }