Implement GetSkipSides so that continued inline frames render properly
This commit is contained in:
@@ -45,6 +45,8 @@ protected:
|
|||||||
nsInlineFrame();
|
nsInlineFrame();
|
||||||
~nsInlineFrame();
|
~nsInlineFrame();
|
||||||
|
|
||||||
|
virtual PRIntn GetSkipSides() const;
|
||||||
|
|
||||||
struct AdjustData {
|
struct AdjustData {
|
||||||
nsIFrame* frame;
|
nsIFrame* frame;
|
||||||
PRBool splittable;
|
PRBool splittable;
|
||||||
@@ -280,3 +282,16 @@ nsInlineFrame::CreateContinuingFrame(nsIPresContext& aPresContext,
|
|||||||
aContinuingFrame = cf;
|
aContinuingFrame = cf;
|
||||||
return NS_OK;
|
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();
|
||||||
~nsInlineFrame();
|
~nsInlineFrame();
|
||||||
|
|
||||||
|
virtual PRIntn GetSkipSides() const;
|
||||||
|
|
||||||
struct AdjustData {
|
struct AdjustData {
|
||||||
nsIFrame* frame;
|
nsIFrame* frame;
|
||||||
PRBool splittable;
|
PRBool splittable;
|
||||||
@@ -280,3 +282,16 @@ nsInlineFrame::CreateContinuingFrame(nsIPresContext& aPresContext,
|
|||||||
aContinuingFrame = cf;
|
aContinuingFrame = cf;
|
||||||
return NS_OK;
|
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