From 302e93fb4bb14f30c2b1f92226885cae90148942 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Fri, 16 May 2025 19:04:47 -0300 Subject: [PATCH] add inline to may_progress_with_repeats --- crates/typst-layout/src/grid/repeated.rs | 1 + crates/typst-layout/src/grid/rowspans.rs | 1 + 2 files changed, 2 insertions(+) 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()