//! 1. **Record Phase**: When text input occurs, record what changed (`old_text` + `inserted_text`)
// repr(C,u8) FFI enum: boxing the large variant would change the C ABI (api.json bindings); size
#[allow(clippy::match_same_arms)] // enum/value mapping/dispatch table: one arm per input variant
fn remap_node_ids(&mut self, dom: azul_core::dom::DomId, map: &crate::managers::NodeIdMap) {