Explorar o código

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

Andreas Kling %!s(int64=5) %!d(string=hai) anos
pai
achega
01408a511f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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)
         if (!m_bitmap)
             return;
             return;
         // FIXME: Do less than a full repaint if possible?
         // 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({});
     });
     });
 }
 }