mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
Add unsafe_layout_node(), unsafe_paintable(), and unsafe_paintable_box() accessors that skip layout-staleness verification. These are for use in contexts where accessing layout/paintable data is legitimate despite layout not being up to date: tree construction, style recalculation, painting, animation interpolation, DOM mutation, and invalidation propagation. Also add wrapper APIs on Node to centralize common patterns: - set_needs_display() wraps if (unsafe_paintable()) ...set_needs_display - set_needs_paint_only_properties_update() wraps similar - set_needs_layout_update() wraps if (unsafe_layout_node()) ... And add Document::layout_is_up_to_date() which checks whether layout tree update flags are all clear. |
||
|---|---|---|
| .. | ||
| ResizeObservation.cpp | ||
| ResizeObservation.h | ||
| ResizeObserver.cpp | ||
| ResizeObserver.h | ||
| ResizeObserver.idl | ||
| ResizeObserverEntry.cpp | ||
| ResizeObserverEntry.h | ||
| ResizeObserverEntry.idl | ||
| ResizeObserverSize.cpp | ||
| ResizeObserverSize.h | ||
| ResizeObserverSize.idl | ||