/// Internal method - called by `debug_warning`! macro after checking `debug_messages.is_some()`
#[allow(clippy::too_many_lines, clippy::cognitive_complexity)] // large but cohesive: single-purpose layout/render/parse routine (one branch per case)
// +spec:positioning:a831e8 - inline content width uses pre-relative-offset positions (satisfied
// +spec:positioning:77a2d2 - Relatively positioned boxes considered without their offset during
let mut patch_damage_pending: Option<(std::collections::BTreeSet<usize>, Vec<LogicalRect>)> =
let gpu_fp = gpu_value_cache.map_or(0, azul_core::gpu::GpuValueCache::dl_emission_fingerprint);
// +spec:containing-block:159830 - Containing block chain: parent content-box for in-flow, viewport
// for initial containing block +spec:containing-block:22fbaa - computes the element's original
// containing block (before positioning effects) +spec:containing-block:238fc5 - containing block
// dimensions calculated here (CSS 2.2 §9.1.2 forward ref to §10) +spec:containing-block:263629 -
// +spec:containing-block:2a5280 - boxes act as containing blocks for descendants; CB = parent's
// content box +spec:containing-block:6776cb - boxes positioned w.r.t. containing block but not
// confined; overflow allowed +spec:containing-block:718894 - CB derived from parent content-box
// containing block for descendants; initial containing block = viewport +spec:containing-block:
// content-box; fixed = viewport +spec:containing-block:e8fdb2 - Containing block resolution (CSS2
// overflow it +spec:positioning:acc663 - containing block definition: element boxes positioned
// [g119 az-web-lift FIX] `#[repr(C, u8)]` (was repr(Rust)): the `Text(font_traits::LayoutError)`
// variant's String/FontSelector pointer gives `Result<T, LayoutError>` a POINTER-niche disc, which
// collect's Result<(),LayoutError> arrived as Err → rc=5 InvalidTree though the out-param content
// was correct). An explicit u8 tag (0..=4) moves the Result niche to unused tag values (5..) = a
// repr(C,u8) FFI enum: boxing the large variant would change the C ABI (api.json bindings); size