use agg_rust::{blur::stack_blur_rgba32, rendering_buffer::RowAccessor, trans_affine::TransAffine};
#[allow(clippy::cast_possible_truncation, clippy::cast_sign_loss)] // bounded pixel/coord/colour/glyph cast
#[allow(clippy::too_many_lines)] // large but cohesive: single-purpose layout/render/parse routine (one branch per case)
#[allow(clippy::match_same_arms)] // enum/value mapping/dispatch table: one arm per input variant
(((clip_bounds.origin.x + clip_bounds.size.width) * dpi_factor).ceil() as i32).clamp(0, pw);
// enum/value mapping/dispatch table: one arm per input variant (or cross-type bindings that can't
((delta.0 * dpi_factor).abs() > 0.5 || (delta.1 * dpi_factor).abs() > 0.5).then_some(delta)
#[allow(clippy::suboptimal_flops)] // mul_add not guaranteed faster/available without target +fma;
#[allow(clippy::suboptimal_flops)] // mul_add not guaranteed faster/available without target +fma; keep explicit a*b+c
#[allow(clippy::too_many_lines)] // large but cohesive: single-purpose layout/render/parse routine
let mut text_shadow_stack: Vec<azul_css::props::style::box_shadow::StyleBoxShadow> = Vec::new();
static DL_DIFF_REFINEMENTS: core::sync::atomic::AtomicU8 = core::sync::atomic::AtomicU8::new(0);
/// - this display list has not already been shifted, which is what `already_shifted` carries (a
current: &std::collections::BTreeMap<azul_core::dom::DomId, std::sync::Arc<DisplayList>>,
previous: &std::collections::BTreeMap<azul_core::dom::DomId, std::sync::Arc<DisplayList>>,
#[allow(clippy::suboptimal_flops)] // mul_add not guaranteed faster/available without target +fma;
#[allow(clippy::many_single_char_names)] // domain-standard coordinate/geometry/short-lived names
/// Layout-driven layer offsets snap to whole device pixels so layers take the integer blit instead of being resampled.
#[allow(clippy::float_cmp)] // intentional exact compare: change-detection / identity fast-path
#[allow(clippy::float_cmp)] // intentional exact compare: change-detection / identity fast-path