Skip to main content

count_layout_passes

Function count_layout_passes 

Source
pub fn count_layout_passes(document: &Document) -> u32
Expand description

Number of full layout passes a document needs (1 for the common case; 2–3 only when a page-number sentinel’s reserved width must be corrected). Exposed as the regression guard for the sentinel re-layout optimization.