pub fn take_layout_invalidation() -> bool
Returns true if a layout invalidation was pending and clears the flag.