1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Generic intrinsic leaf-measurement extension point ([`LeafMeasureHook`]) for capability tables
//! (e.g. `TextInput`, `Toggle`, `Gauge`, `Video`, `WebView`, `Camera`, or other capability modules).
//!
//! Hooks are stored in a [`SlotRegistry`](nativeview_engine::ext::slot_registry::SlotRegistry) on the
//! layout engine: an empty registry is 32 B inline and exits in 1 branch with zero heap
//! allocations, while populated registries dispatch in O(1) via the node's `TableSet` bitmask.
use ;
pub use Size;
pub use AvailableSpace;
use crate::;
/// Compact, zero-allocation context passed to [`LeafMeasureHook::measure`] during Taffy leaf
/// measurement.
/// Intrinsic content-box measurement hook registered per [`nativeview_store::TableSlot`] on
/// [`crate::StoreLayoutEngine::register_measure_hook`].
///
/// Returning `Some(size)` supplies the leaf's content-box dimensions in logical points (non-finite
/// or negative components clamp to `0.0`; explicit CSS `aspect-ratio` combines with a single known
/// axis matching standard replaced-element sizing); returning `None` falls through to the next
/// matching hook or default `aspect-ratio` / `Size::ZERO` sizing.