Make vertical resizing of framesets work in standards mode. Bug 376981, r+sr=dbaron

git-svn-id: svn://10.0.0.236/trunk@237878 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2007-10-19 03:45:30 +00:00
parent 469ba4e408
commit f4697bdade

View File

@@ -571,6 +571,13 @@ CanvasFrame::Reflow(nsPresContext* aPresContext,
nsSize(aReflowState.availableWidth,
NS_UNCONSTRAINEDSIZE));
if (aReflowState.mFlags.mVResize &&
(kidFrame->GetStateBits() & NS_FRAME_CONTAINS_RELATIVE_HEIGHT)) {
// Tell our kid it's being vertically resized too. Bit of a
// hack for framesets.
kidReflowState.mFlags.mVResize = PR_TRUE;
}
// Reflow the frame
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowState,
kidReflowState.mComputedMargin.left, kidReflowState.mComputedMargin.top,