//! - **Scroll physics timer** (`scroll_timer.rs)`: Consumes inputs via `ScrollInputQueue`, applies
//! - **Event processing** (`event_v2.rs)`: Processes `ScrollTo` changes, sets scroll positions, and
//! - **`WebRender` sync** (`wr_translate2.rs)`: Reads offsets via `get_scroll_states_for_dom()` to
fn can_consume_delta(&self, dom_id: DomId, node_id: NodeId, eff_x: f32, eff_y: f32) -> bool {
// Instant is a ref-counted FFI clock handle; called by every dll backend's event loop by value.
pub fn get_current_offset(&self, dom_id: DomId, node_id: NodeId) -> Option<LogicalPosition> {
pub fn get_last_activity_time(&self, dom_id: DomId, node_id: NodeId) -> Option<Instant> {
pub fn get_scroll_state(&self, dom_id: DomId, node_id: NodeId) -> Option<&AnimatedScrollState> {
pub fn get_scroll_node_info(&self, dom_id: DomId, node_id: NodeId) -> Option<ScrollNodeInfo> {
/// - `children_rect.origin` — the **scroll offset itself**, i.e. `current_offset`: the distance
pub fn get_scroll_states_for_dom(&self, dom_id: DomId) -> BTreeMap<NodeId, ScrollPosition> {
/// If the node already exists, updates container/content rects without changing scroll offset.
#[allow(clippy::suboptimal_flops)] // mul_add not guaranteed faster/available without target +fma;