diff --git a/Userland/Libraries/LibWeb/Layout/ImageBox.cpp b/Userland/Libraries/LibWeb/Layout/ImageBox.cpp index edb0f9edf81..be67828de82 100644 --- a/Userland/Libraries/LibWeb/Layout/ImageBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/ImageBox.cpp @@ -78,7 +78,7 @@ bool ImageBox::renders_as_alt_text() const void ImageBox::browsing_context_did_set_viewport_rect(Gfx::IntRect const& viewport_rect) { - m_image_loader.set_visible_in_viewport(viewport_rect.to_type().intersects(paint_box()->absolute_rect())); + m_image_loader.set_visible_in_viewport(paint_box() && viewport_rect.to_type().intersects(paint_box()->absolute_rect())); } RefPtr ImageBox::create_paintable() const