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:
parent
275833b30d
commit
e5e296e58c
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user