add inline to may_progress_with_repeats

This commit is contained in:
PgBiel 2025-05-16 19:04:47 -03:00
parent 3055697de2
commit 302e93fb4b
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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()