mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibWeb: Implement gathering and broadcasting of resize observations
Extends event loop processing steps to include gathering and broadcasting resize observations. Moves layout updates from Navigable::paint() to event loop processing steps. This ensures resize observation processing occurs between layout updates and painting.
This commit is contained in:
parent
8ba18dfd40
commit
fcf293a8df
8 changed files with 287 additions and 1 deletions
|
@ -590,6 +590,11 @@ public:
|
|||
virtual Vector<FlyString> supported_property_names() const override;
|
||||
Vector<JS::NonnullGCPtr<DOM::Element>> const& potentially_named_elements() const { return m_potentially_named_elements; }
|
||||
|
||||
void gather_active_observations_at_depth(size_t depth);
|
||||
[[nodiscard]] size_t broadcast_active_resize_observations();
|
||||
[[nodiscard]] bool has_active_resize_observations();
|
||||
[[nodiscard]] bool has_skipped_resize_observations();
|
||||
|
||||
protected:
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
virtual void visit_edges(Cell::Visitor&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue