mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:37:35 +00:00
LibWeb: Fix background images not showing till scrolling/repaint
Previously, set_needs_display() was passed an empty rectangle in ImageStyleValue::resource_did_load(). This led to the browser not doing a repaint when the image loaded. Fixes #14435
This commit is contained in:
parent
e98f8f20df
commit
a999b82882
1 changed files with 1 additions and 1 deletions
|
@ -1393,7 +1393,7 @@ void ImageStyleValue::resource_did_load()
|
||||||
m_bitmap = resource()->bitmap();
|
m_bitmap = resource()->bitmap();
|
||||||
// FIXME: Do less than a full repaint if possible?
|
// FIXME: Do less than a full repaint if possible?
|
||||||
if (m_document && m_document->browsing_context())
|
if (m_document && m_document->browsing_context())
|
||||||
m_document->browsing_context()->set_needs_display({});
|
m_document->browsing_context()->set_needs_display();
|
||||||
}
|
}
|
||||||
|
|
||||||
String ImageStyleValue::to_string() const
|
String ImageStyleValue::to_string() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue