Implement GetSkipSides so that continued inline frames render properly

git-svn-id: svn://10.0.0.236/trunk@16683 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com 1998-12-18 22:12:42 +00:00
parent 275833b30d
commit e5e296e58c
2 changed files with 30 additions and 0 deletions

View File

@ -45,6 +45,8 @@ protected:
nsInlineFrame();
~nsInlineFrame();
virtual PRIntn GetSkipSides() const;
struct AdjustData {
nsIFrame* frame;
PRBool splittable;
@ -280,3 +282,16 @@ nsInlineFrame::CreateContinuingFrame(nsIPresContext& aPresContext,
aContinuingFrame = cf;
return NS_OK;
}
PRIntn
nsInlineFrame::GetSkipSides() const
{
PRIntn skip = 0;
if (nsnull != mPrevInFlow) {
skip |= 1 << NS_SIDE_LEFT;
}
if (nsnull != mNextInFlow) {
skip |= 1 << NS_SIDE_RIGHT;
}
return skip;
}

View File

@ -45,6 +45,8 @@ protected:
nsInlineFrame();
~nsInlineFrame();
virtual PRIntn GetSkipSides() const;
struct AdjustData {
nsIFrame* frame;
PRBool splittable;
@ -280,3 +282,16 @@ nsInlineFrame::CreateContinuingFrame(nsIPresContext& aPresContext,
aContinuingFrame = cf;
return NS_OK;
}
PRIntn
nsInlineFrame::GetSkipSides() const
{
PRIntn skip = 0;
if (nsnull != mPrevInFlow) {
skip |= 1 << NS_SIDE_LEFT;
}
if (nsnull != mNextInFlow) {
skip |= 1 << NS_SIDE_RIGHT;
}
return skip;
}