From 84ccaacba0239492d965cc8666d4d824a1d36d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ara=C3=BAjo?= Date: Mon, 2 Jun 2025 08:58:38 -0300 Subject: [PATCH] rename bleed_start with content_origin --- crates/typst-layout/src/pages/finalize.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/typst-layout/src/pages/finalize.rs b/crates/typst-layout/src/pages/finalize.rs index 3b570832a..8e99fda13 100644 --- a/crates/typst-layout/src/pages/finalize.rs +++ b/crates/typst-layout/src/pages/finalize.rs @@ -43,20 +43,20 @@ pub fn finalize( frame.push(Point::zero(), FrameItem::Tag(tag)); } - let bleed_start = Point::new(bleed.left, bleed.top); + let content_origin = Point::new(bleed.left, bleed.top); // Add the "before" marginals. The order in which we push things here is // important as it affects the relative ordering of introspectable elements // and thus how counters resolve. if let Some(background) = background { - frame.push_frame(bleed_start, background); + frame.push_frame(content_origin, background); } if let Some(header) = header { - frame.push_frame(bleed_start + Point::with_x(margin.left), header); + frame.push_frame(content_origin + Point::with_x(margin.left), header); } // Add the inner contents. - frame.push_frame(bleed_start + Point::new(margin.left, margin.top), inner); + frame.push_frame(content_origin + Point::new(margin.left, margin.top), inner); // Add the "after" marginals. if let Some(footer) = footer { @@ -64,7 +64,7 @@ pub fn finalize( frame.push_frame(Point::new(margin.left + bleed.left, y), footer); } if let Some(foreground) = foreground { - frame.push_frame(bleed_start + Point::zero(), foreground); + frame.push_frame(content_origin + Point::zero(), foreground); } // Apply counter updates from within the page to the manual page counter.