mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 06:05:44 +00:00
Added a method to support propogation of the mRunInFrame info down into the reflow of a block
This commit is contained in:
parent
add7918774
commit
85c8ae6bcf
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user