public void markRun(int offset, BlockBox previous, BlockBox current) {
RelayoutData previousData = get(offset - 1);
RelayoutData currentData = get(offset);
IdentValue previousAfter =
previous.getStyle().getIdent(CSSName.PAGE_BREAK_AFTER);
IdentValue currentBefore =
current.getStyle().getIdent(CSSName.PAGE_BREAK_BEFORE);
if ((previousAfter == IdentValue.AVOID && currentBefore == IdentValue.AUTO) ||
(previousAfter == IdentValue.AUTO && currentBefore == IdentValue.AVOID) ||
(previousAfter == IdentValue.AVOID && currentBefore == IdentValue.AVOID)) {