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:
Aliaksandr Kalenik 2024-07-24 18:48:14 +03:00 committed by Andreas Kling
commit 50ab5642cc
Notes: github-actions[bot] 2024-07-25 12:34:42 +00:00
4 changed files with 12 additions and 5 deletions

View file

@ -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>() };