Support break-before/after for block frames

This commit is contained in:
kipp%netscape.com 1998-09-25 17:50:09 +00:00
Родитель b32f678a1b
Коммит 856e3e82e5
6 изменённых файлов: 48 добавлений и 36 удалений

Просмотреть файл

@ -2838,12 +2838,14 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
aLine->ClearLastContentIsComplete();
}
// XXX block's can't (currently) return break before/after, right???
// If we want to consolidate inline/block reflow then we need to
// pretend that they can and make this class return break
// before/after status based on the placed frame count in the
// line...
NS_ASSERTION(!NS_INLINE_IS_BREAK(reflowStatus), "bad block reflow status");
// XXX We need to check the *type* of break and if it's a column/page
// break apply and cause the block to be split (assuming we are
// laying out in a column).
#if XXX
if (NS_INLINE_IS_BREAK(reflowStatus)) {
// XXX For now we ignore it
}
#endif
// Align the frame
ir.VerticalAlignFrames(aLine->mBounds);

Просмотреть файл

@ -2838,12 +2838,14 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
aLine->ClearLastContentIsComplete();
}
// XXX block's can't (currently) return break before/after, right???
// If we want to consolidate inline/block reflow then we need to
// pretend that they can and make this class return break
// before/after status based on the placed frame count in the
// line...
NS_ASSERTION(!NS_INLINE_IS_BREAK(reflowStatus), "bad block reflow status");
// XXX We need to check the *type* of break and if it's a column/page
// break apply and cause the block to be split (assuming we are
// laying out in a column).
#if XXX
if (NS_INLINE_IS_BREAK(reflowStatus)) {
// XXX For now we ignore it
}
#endif
// Align the frame
ir.VerticalAlignFrames(aLine->mBounds);

Просмотреть файл

@ -2838,12 +2838,14 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
aLine->ClearLastContentIsComplete();
}
// XXX block's can't (currently) return break before/after, right???
// If we want to consolidate inline/block reflow then we need to
// pretend that they can and make this class return break
// before/after status based on the placed frame count in the
// line...
NS_ASSERTION(!NS_INLINE_IS_BREAK(reflowStatus), "bad block reflow status");
// XXX We need to check the *type* of break and if it's a column/page
// break apply and cause the block to be split (assuming we are
// laying out in a column).
#if XXX
if (NS_INLINE_IS_BREAK(reflowStatus)) {
// XXX For now we ignore it
}
#endif
// Align the frame
ir.VerticalAlignFrames(aLine->mBounds);

Просмотреть файл

@ -2838,12 +2838,14 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
aLine->ClearLastContentIsComplete();
}
// XXX block's can't (currently) return break before/after, right???
// If we want to consolidate inline/block reflow then we need to
// pretend that they can and make this class return break
// before/after status based on the placed frame count in the
// line...
NS_ASSERTION(!NS_INLINE_IS_BREAK(reflowStatus), "bad block reflow status");
// XXX We need to check the *type* of break and if it's a column/page
// break apply and cause the block to be split (assuming we are
// laying out in a column).
#if XXX
if (NS_INLINE_IS_BREAK(reflowStatus)) {
// XXX For now we ignore it
}
#endif
// Align the frame
ir.VerticalAlignFrames(aLine->mBounds);

Просмотреть файл

@ -2838,12 +2838,14 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
aLine->ClearLastContentIsComplete();
}
// XXX block's can't (currently) return break before/after, right???
// If we want to consolidate inline/block reflow then we need to
// pretend that they can and make this class return break
// before/after status based on the placed frame count in the
// line...
NS_ASSERTION(!NS_INLINE_IS_BREAK(reflowStatus), "bad block reflow status");
// XXX We need to check the *type* of break and if it's a column/page
// break apply and cause the block to be split (assuming we are
// laying out in a column).
#if XXX
if (NS_INLINE_IS_BREAK(reflowStatus)) {
// XXX For now we ignore it
}
#endif
// Align the frame
ir.VerticalAlignFrames(aLine->mBounds);

Просмотреть файл

@ -2838,12 +2838,14 @@ nsBlockFrame::ReflowBlockFrame(nsBlockReflowState& aState,
aLine->ClearLastContentIsComplete();
}
// XXX block's can't (currently) return break before/after, right???
// If we want to consolidate inline/block reflow then we need to
// pretend that they can and make this class return break
// before/after status based on the placed frame count in the
// line...
NS_ASSERTION(!NS_INLINE_IS_BREAK(reflowStatus), "bad block reflow status");
// XXX We need to check the *type* of break and if it's a column/page
// break apply and cause the block to be split (assuming we are
// laying out in a column).
#if XXX
if (NS_INLINE_IS_BREAK(reflowStatus)) {
// XXX For now we ignore it
}
#endif
// Align the frame
ir.VerticalAlignFrames(aLine->mBounds);