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
//! Sizes measured while a frame is laid out, for layouts that depend on
//! their own width (CSS container queries, `auto-fill` tracks, fits).
//!
//! A component measures in a `canvas` prepaint and keeps the result in
//! keyed state that the next render reads. GPUI drops a `notify` made while
//! a frame is drawn (`WindowInvalidator::invalidate_view` returns `false`
//! outside `DrawPhase::None`), and `Window::refresh` is a no-op then too, so
//! a measurement that changed nothing else, such as after a live window
//! resize, stayed unused until the next input event redrew the window.
//! [`store`] asks for the next frame explicitly.
use ;
/// Keeps `value`, measured in this frame's prepaint, in `state`; when it
/// changed, redraws on the next frame so the layout that reads it follows.
/// Returns whether it changed.
/// Redraws the whole window on the next frame: what a change found while
/// drawing (in prepaint or paint) must ask for, since a notify then is lost.