@@ 559-567 (lines=9) @@ | ||
556 | return true; |
|
557 | } |
|
558 | ||
559 | if (!$flg && $next = $iter->get_last_child()) { |
|
560 | Helpers::dompdf_debug("page-break", "following last child."); |
|
561 | ||
562 | if ($next->is_table()) { |
|
563 | $this->_in_table++; |
|
564 | } |
|
565 | ||
566 | $iter = $next; |
|
567 | continue; |
|
568 | } |
|
569 | ||
570 | if ($next = $iter->get_prev_sibling()) { |
|
@@ 584-593 (lines=10) @@ | ||
581 | continue; |
|
582 | } |
|
583 | ||
584 | if ($next = $iter->get_parent()) { |
|
585 | Helpers::dompdf_debug("page-break", "following parent."); |
|
586 | ||
587 | if ($iter->is_table()) { |
|
588 | $this->_in_table--; |
|
589 | } |
|
590 | ||
591 | $iter = $next; |
|
592 | $flg = true; |
|
593 | continue; |
|
594 | } |
|
595 | ||
596 | break; |