mirror of
https://github.com/typst/typst
synced 2025-05-25 06:25:28 +08:00
add inline to may_progress_with_repeats
This commit is contained in:
parent
3055697de2
commit
302e93fb4b
@ -18,6 +18,7 @@ impl<'a> GridLayouter<'a> {
|
||||
/// (`regions.last` is still `Some()`) and non-repeating rows have been
|
||||
/// placed, since that means the space they occupy will be available in the
|
||||
/// next region.
|
||||
#[inline]
|
||||
pub fn may_progress_with_repeats(&self) -> bool {
|
||||
// TODO(subfooters): check below isn't enough to detect non-repeating
|
||||
// footers... we can also change 'initial_after_repeats' to stop being
|
||||
|
@ -1251,6 +1251,7 @@ impl<'a> RowspanSimulator<'a> {
|
||||
|
||||
/// Similar to [`GridLayouter::may_progress_with_repeats`] but for rowspan
|
||||
/// simulation.
|
||||
#[inline]
|
||||
fn may_progress_with_repeats(&self) -> bool {
|
||||
self.could_progress_at_top
|
||||
|| self.regions.last.is_some()
|
||||
|
Loading…
x
Reference in New Issue
Block a user