diff --git a/crates/typst-layout/src/grid/repeated.rs b/crates/typst-layout/src/grid/repeated.rs index fbfa5dbc6..e65ff5318 100644 --- a/crates/typst-layout/src/grid/repeated.rs +++ b/crates/typst-layout/src/grid/repeated.rs @@ -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 diff --git a/crates/typst-layout/src/grid/rowspans.rs b/crates/typst-layout/src/grid/rowspans.rs index b36a56bc6..b391f7e79 100644 --- a/crates/typst-layout/src/grid/rowspans.rs +++ b/crates/typst-layout/src/grid/rowspans.rs @@ -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()