mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 01:10:22 +00:00
Added methods for supporting 2 pass vertical align reflow
This commit is contained in:
parent
0004ac4128
commit
9f5bab8779
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user