mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +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
|
@ -2093,7 +2093,6 @@ void Navigable::paint(Painting::RecordingPainter& recording_painter, PaintConfig
|
|||
auto viewport_rect = page.css_to_device_rect(this->viewport_rect());
|
||||
Gfx::IntRect bitmap_rect { {}, viewport_rect.size().to_type<int>() };
|
||||
|
||||
document->update_layout();
|
||||
auto background_color = document->background_color();
|
||||
|
||||
recording_painter.fill_rect(bitmap_rect, background_color);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue