mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00:00
LibWeb: Make DisplayList ref-counted
This change is a preparation for the upcoming changes where display list will be nested and the same display could be owned by multiple display list items.
This commit is contained in:
parent
e8b7c88881
commit
50ab5642cc
Notes:
github-actions[bot]
2024-07-25 12:34:42 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 50ab5642cc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/826
4 changed files with 12 additions and 5 deletions
|
@ -1190,7 +1190,7 @@ JS::GCPtr<DOM::Node> TraversableNavigable::currently_focused_area()
|
|||
|
||||
void TraversableNavigable::paint(DevicePixelRect const& content_rect, Painting::BackingStore& target, PaintOptions paint_options)
|
||||
{
|
||||
Painting::DisplayList display_list;
|
||||
auto display_list = Painting::DisplayList::create();
|
||||
Painting::DisplayListRecorder display_list_recorder(display_list);
|
||||
|
||||
Gfx::IntRect bitmap_rect { {}, content_rect.size().to_type<int>() };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue