|
@@ -64,9 +64,8 @@ void PageHost::paint(const Gfx::IntRect& content_rect, Gfx::Bitmap& target)
|
|
Gfx::Painter painter(target);
|
|
Gfx::Painter painter(target);
|
|
Gfx::IntRect bitmap_rect { {}, content_rect.size() };
|
|
Gfx::IntRect bitmap_rect { {}, content_rect.size() };
|
|
|
|
|
|
- auto* document = page().top_level_browsing_context().active_document();
|
|
|
|
- VERIFY(document);
|
|
|
|
- document->update_layout();
|
|
|
|
|
|
+ if (auto* document = page().top_level_browsing_context().active_document())
|
|
|
|
+ document->update_layout();
|
|
|
|
|
|
auto* layout_root = this->layout_root();
|
|
auto* layout_root = this->layout_root();
|
|
if (!layout_root) {
|
|
if (!layout_root) {
|