Implement GetSkipSides so that continued inline frames render properly
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user