Added nsHTMLReflowState constructor that allows containing block width

and height to be specified. This is needed for relatively positioned
block elements


git-svn-id: svn://10.0.0.236/trunk@47787 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1999-09-16 14:33:19 +00:00
parent 14d7307a98
commit 4d5ed09a1f
11 changed files with 301 additions and 100 deletions

View File

@@ -188,8 +188,12 @@ nsPositionedInlineFrame::Reflow(nsIPresContext& aPresContext,
if (eReflowReason_Incremental == aReflowState.reason) {
// Give the absolute positioning code a chance to handle it
PRBool handled;
nscoord containingBlockWidth = -1;
nscoord containingBlockHeight = -1;
mAbsoluteContainer.IncrementalReflow(this, aPresContext, aReflowState, handled);
mAbsoluteContainer.IncrementalReflow(this, aPresContext, aReflowState,
containingBlockWidth, containingBlockHeight,
handled);
// If the incremental reflow command was handled by the absolute positioning
// code, then we're all done
@@ -210,7 +214,11 @@ nsPositionedInlineFrame::Reflow(nsIPresContext& aPresContext,
// Let the absolutely positioned container reflow any absolutely positioned
// child frames that need to be reflowed
if (NS_SUCCEEDED(rv)) {
rv = mAbsoluteContainer.Reflow(this, aPresContext, aReflowState);
nscoord containingBlockWidth = -1;
nscoord containingBlockHeight = -1;
rv = mAbsoluteContainer.Reflow(this, aPresContext, aReflowState,
containingBlockWidth, containingBlockHeight);
}
return rv;