mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
LibWeb: Move m_needs_repaint
and record_display_list()
in Document
Let's make document responsible for display list invalidation, considering it already takes care of style and layout.
This commit is contained in:
parent
ab76b99f1e
commit
69c6e07139
Notes:
github-actions[bot]
2024-08-19 16:58:13 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 69c6e07139
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1106
16 changed files with 117 additions and 109 deletions
|
@ -48,7 +48,7 @@ void ImageStyleValue::load_any_resources(DOM::Document& document)
|
|||
m_document->set_needs_to_resolve_paint_only_properties();
|
||||
|
||||
// FIXME: Do less than a full repaint if possible?
|
||||
navigable->set_needs_display();
|
||||
m_document->set_needs_display();
|
||||
}
|
||||
|
||||
auto image_data = m_resource_request->image_data();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue