зеркало из https://github.com/mozilla/pjs.git
Added state to keep track of lines that are impacted by floaters
This commit is contained in:
Родитель
64001dcb96
Коммит
5293dd812d
|
@ -59,6 +59,7 @@ public:
|
|||
|
||||
void BeginLineReflow(nscoord aX, nscoord aY,
|
||||
nscoord aWidth, nscoord aHeight,
|
||||
PRBool aImpactedByFloaters,
|
||||
PRBool aIsTopOfPage);
|
||||
|
||||
void EndLineReflow();
|
||||
|
@ -84,7 +85,6 @@ public:
|
|||
nsIFrame** aNextRCFrame,
|
||||
nsReflowStatus& aReflowStatus);
|
||||
|
||||
|
||||
nscoord GetCarriedOutTopMargin() const {
|
||||
return mCurrentSpan->mLastFrame->mCarriedOutTopMargin;
|
||||
}
|
||||
|
@ -146,6 +146,10 @@ public:
|
|||
return 0 == mTotalPlacedFrames;
|
||||
}
|
||||
|
||||
PRBool LineIsBreakable() const {
|
||||
return (0 != mTotalPlacedFrames) || mImpactedByFloaters;
|
||||
}
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
// Inform the line-layout engine about the presence of a BR frame
|
||||
|
@ -229,6 +233,7 @@ protected:
|
|||
PRBool mWasInWord;
|
||||
PRBool mCanBreakBeforeFrame;
|
||||
PRBool mUpdatedBand;
|
||||
PRBool mImpactedByFloaters;
|
||||
PRUint8 mPlacedFloaters;
|
||||
PRInt32 mTotalPlacedFrames;
|
||||
nsVoidArray mWordFrames;
|
||||
|
|
|
@ -59,6 +59,7 @@ public:
|
|||
|
||||
void BeginLineReflow(nscoord aX, nscoord aY,
|
||||
nscoord aWidth, nscoord aHeight,
|
||||
PRBool aImpactedByFloaters,
|
||||
PRBool aIsTopOfPage);
|
||||
|
||||
void EndLineReflow();
|
||||
|
@ -84,7 +85,6 @@ public:
|
|||
nsIFrame** aNextRCFrame,
|
||||
nsReflowStatus& aReflowStatus);
|
||||
|
||||
|
||||
nscoord GetCarriedOutTopMargin() const {
|
||||
return mCurrentSpan->mLastFrame->mCarriedOutTopMargin;
|
||||
}
|
||||
|
@ -146,6 +146,10 @@ public:
|
|||
return 0 == mTotalPlacedFrames;
|
||||
}
|
||||
|
||||
PRBool LineIsBreakable() const {
|
||||
return (0 != mTotalPlacedFrames) || mImpactedByFloaters;
|
||||
}
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
// Inform the line-layout engine about the presence of a BR frame
|
||||
|
@ -229,6 +233,7 @@ protected:
|
|||
PRBool mWasInWord;
|
||||
PRBool mCanBreakBeforeFrame;
|
||||
PRBool mUpdatedBand;
|
||||
PRBool mImpactedByFloaters;
|
||||
PRUint8 mPlacedFloaters;
|
||||
PRInt32 mTotalPlacedFrames;
|
||||
nsVoidArray mWordFrames;
|
||||
|
|
Загрузка…
Ссылка в новой задаче