Added SetBRFrame/GetBRFrame for handling 0 height line layout and BR's

git-svn-id: svn://10.0.0.236/trunk@11452 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1998-09-29 22:32:04 +00:00
parent 4040cf15ce
commit 655a69e6ba
2 changed files with 22 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ public:
mTotalPlacedFrames = 0;
mColumn = 0;
mSkipLeadingWS = PR_TRUE;
mBRFrame = nsnull;
#ifdef NS_DEBUG
mPlacedFrames.Clear();
#endif
@@ -92,6 +93,14 @@ public:
return mTotalPlacedFrames;
}
void SetBRFrame(nsIFrame* aFrame) {
mBRFrame = aFrame;
}
nsIFrame* GetBRFrame() const {
return mBRFrame;
}
// --------------------------------------------------
// Reset the text-run information in preparation for a FindTextRuns
@@ -145,6 +154,8 @@ public:
PRBool mSkipLeadingWS;
protected:
nsIFrame* mBRFrame;
PRInt32 mTotalPlacedFrames;
#ifdef NS_DEBUG
nsVoidArray mPlacedFrames;

View File

@@ -70,6 +70,7 @@ public:
mTotalPlacedFrames = 0;
mColumn = 0;
mSkipLeadingWS = PR_TRUE;
mBRFrame = nsnull;
#ifdef NS_DEBUG
mPlacedFrames.Clear();
#endif
@@ -92,6 +93,14 @@ public:
return mTotalPlacedFrames;
}
void SetBRFrame(nsIFrame* aFrame) {
mBRFrame = aFrame;
}
nsIFrame* GetBRFrame() const {
return mBRFrame;
}
// --------------------------------------------------
// Reset the text-run information in preparation for a FindTextRuns
@@ -145,6 +154,8 @@ public:
PRBool mSkipLeadingWS;
protected:
nsIFrame* mBRFrame;
PRInt32 mTotalPlacedFrames;
#ifdef NS_DEBUG
nsVoidArray mPlacedFrames;