mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
LibWeb: Change viewport ownership from BrowsingContext
to Navigable
This commit is contained in:
parent
4356d37b2c
commit
dd7bba66ed
23 changed files with 196 additions and 129 deletions
|
@ -41,8 +41,8 @@ void ImageStyleValue::load_any_resources(DOM::Document& document)
|
|||
return;
|
||||
|
||||
// FIXME: Do less than a full repaint if possible?
|
||||
if (auto* browsing_context = m_document->browsing_context())
|
||||
browsing_context->set_needs_display();
|
||||
if (auto navigable = m_document->navigable())
|
||||
navigable->set_needs_display();
|
||||
|
||||
auto image_data = m_image_request->image_data();
|
||||
if (image_data->is_animated() && image_data->frame_count() > 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue