Przeglądaj źródła

LibWeb: Don't try to repaint frameless documents in CSSStyleValue

Andreas Kling 5 lat temu
rodzic
commit
01408a511f
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      Libraries/LibWeb/CSS/StyleValue.cpp

+ 2 - 1
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({});
     });
 }