Added a method to support propogation of the mRunInFrame info down into the reflow of a block

This commit is contained in:
kipp%netscape.com 1998-11-11 03:55:23 +00:00
parent add7918774
commit 85c8ae6bcf
2 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,7 @@ nsInlineReflow::Init(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)
mUpdatedBand = PR_FALSE;
mPlacedLeftFloater = PR_FALSE;
mTreatFrameAsBlock = PR_FALSE;
mRunInFrame = nsnull;
}
void
@ -461,6 +462,7 @@ nsInlineReflow::ReflowFrame(nsHTMLReflowMetrics& aMetrics,
if (!mTreatFrameAsBlock) {
reflowState.lineLayout = &mLineLayout;
}
reflowState.mRunInFrame = mRunInFrame;
reflowState.reason = reason;
mLineLayout.SetUnderstandsWhiteSpace(PR_FALSE);

View File

@ -51,6 +51,10 @@ public:
mIsFirstChild = aValue;
}
void SetRunInFrame(nsBlockFrame* aBlockFrame) {
mRunInFrame = aBlockFrame;
}
void UpdateBand(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight,
PRBool aPlacedLeftFloater);
@ -153,6 +157,8 @@ protected:
nsIPresContext& mPresContext;
PRBool mOuterIsBlock;
nsBlockFrame* mRunInFrame;
PRIntn mFrameNum;
/*