Added methods for supporting 2 pass vertical align reflow

This commit is contained in:
kipp%netscape.com 1999-02-18 03:28:00 +00:00
parent 0004ac4128
commit 9f5bab8779
2 changed files with 24 additions and 0 deletions

View File

@ -54,6 +54,17 @@ public:
mPlacedFrames.Clear();
ForgetWordFrames();
mFirstLetterStyleOK = PR_FALSE;
mPass2VAlignCount = 0;
}
// Record the prescence of a frame that needs pass2 vertical-align
// handling.
void RecordPass2VAlignFrame() {
mPass2VAlignCount++;
}
PRBool NeedPass2VAlign() const {
return 0 != mPass2VAlignCount;
}
// Add to the placed-frame count
@ -199,6 +210,7 @@ protected:
PRBool mEndsInWhiteSpace;
PRBool mUnderstandsWhiteSpace;
PRBool mFirstLetterStyleOK;
PRInt32 mPass2VAlignCount;
PRInt32 mTotalPlacedFrames;
nsVoidArray mPlacedFrames;

View File

@ -54,6 +54,17 @@ public:
mPlacedFrames.Clear();
ForgetWordFrames();
mFirstLetterStyleOK = PR_FALSE;
mPass2VAlignCount = 0;
}
// Record the prescence of a frame that needs pass2 vertical-align
// handling.
void RecordPass2VAlignFrame() {
mPass2VAlignCount++;
}
PRBool NeedPass2VAlign() const {
return 0 != mPass2VAlignCount;
}
// Add to the placed-frame count
@ -199,6 +210,7 @@ protected:
PRBool mEndsInWhiteSpace;
PRBool mUnderstandsWhiteSpace;
PRBool mFirstLetterStyleOK;
PRInt32 mPass2VAlignCount;
PRInt32 mTotalPlacedFrames;
nsVoidArray mPlacedFrames;