From f4697bdadee1aca7c0a9c8dc818610f2bb0aa397 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Fri, 19 Oct 2007 03:45:30 +0000 Subject: [PATCH] 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 --- mozilla/layout/generic/nsHTMLFrame.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mozilla/layout/generic/nsHTMLFrame.cpp b/mozilla/layout/generic/nsHTMLFrame.cpp index c41d9d67296..f01a2a03ada 100644 --- a/mozilla/layout/generic/nsHTMLFrame.cpp +++ b/mozilla/layout/generic/nsHTMLFrame.cpp @@ -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,