script: Also update canvas contents when laying out right after / during long parsing (#37899)

Before #37703 we were actually doing update rendering of canvases/images
as part of `allow_layout_if_necessary` so let's keep doing that until we
fix this properly as this will be much more involved and we want usable
canvases in the mean time.

Testing: Manual testing + WPT tests
Fixes: #37891

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
sagudev 2025-07-05 20:09:22 +02:00 committed by GitHub
parent 2ad5b24225
commit 48cf50309f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 4 deletions

View file

@ -2341,7 +2341,7 @@ impl Window {
// iframe size updates.
//
// See <https://github.com/servo/servo/issues/14719>
self.reflow(ReflowGoal::UpdateTheRendering, can_gc);
self.Document().update_the_rendering(can_gc);
}
pub(crate) fn layout_blocked(&self) -> bool {