LibWeb: Rename PaintContext to DisplayListRecordingContext

PaintContext dates back to a time when display lists didn't exist and it
truly represented "paint context". Renaming it to better align with its
current role.
This commit is contained in:
Aliaksandr Kalenik 2025-07-31 23:07:26 +02:00 committed by Alexander Kalenik
commit 61114f6d16
Notes: github-actions[bot] 2025-08-01 09:27:48 +00:00
65 changed files with 160 additions and 174 deletions

View file

@ -84,7 +84,7 @@ Optional<Gfx::ImageCursor> CursorStyleValue::make_image_cursor(Layout::NodeWithS
// Paint the cursor into a bitmap.
auto display_list = Painting::DisplayList::create(document.page().client().device_pixels_per_css_pixel());
Painting::DisplayListRecorder display_list_recorder(display_list);
PaintContext paint_context { display_list_recorder, document.page().palette(), document.page().client().device_pixels_per_css_pixel() };
DisplayListRecordingContext paint_context { display_list_recorder, document.page().palette(), document.page().client().device_pixels_per_css_pixel() };
image.resolve_for_size(layout_node, CSSPixelSize { bitmap.size() });
image.paint(paint_context, DevicePixelRect { bitmap.rect() }, ImageRendering::Auto);