Bug 851847 - Optimize nsBlockFrame::StealFrame when removing a normal flow child. r=bzbarsky

This commit is contained in:
Mats Palmgren
2013-03-23 21:10:34 +01:00
parent 05e2111866
commit 2da2bd888c
6 changed files with 117 additions and 93 deletions

View File

@@ -747,7 +747,9 @@ nsHTMLFramesetFrame::ReflowPlaceChild(nsIFrame* aChild,
nsIntPoint* aCellIndex)
{
// reflow the child
nsHTMLReflowState reflowState(aPresContext, aReflowState, aChild, aSize);
nsHTMLReflowState reflowState(aPresContext, aReflowState, aChild, aSize);
reflowState.SetComputedWidth(std::max(0, aSize.width - reflowState.mComputedBorderPadding.LeftRight()));
reflowState.SetComputedHeight(std::max(0, aSize.height - reflowState.mComputedBorderPadding.TopBottom()));
nsHTMLReflowMetrics metrics;
metrics.width = aSize.width;
metrics.height= aSize.height;