summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibWeb/CSS/StyleValue.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibWeb/CSS/StyleValue.cpp b/Libraries/LibWeb/CSS/StyleValue.cpp
index 36b5e23644..19472a1cfe 100644
--- a/Libraries/LibWeb/CSS/StyleValue.cpp
+++ b/Libraries/LibWeb/CSS/StyleValue.cpp
@@ -75,7 +75,8 @@ ImageStyleValue::ImageStyleValue(const URL& url, Document& document)
if (!m_bitmap)
return;
// FIXME: Do less than a full repaint if possible?
- m_document->frame()->set_needs_display({});
+ if (m_document->frame())
+ m_document->frame()->set_needs_display({});
});
}