1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

LibWeb: Rename painter() to recording_painter() in PaintContext

Using recording_painter() as a name is less misleading, indicating
the painter in stacking context traversal doesn't perform actual
painting commands.
This commit is contained in:
Aliaksandr Kalenik 2023-11-27 18:49:50 +01:00 committed by Andreas Kling
parent c3d28d7f5a
commit 1b3223dd9e
26 changed files with 119 additions and 121 deletions

View file

@ -300,7 +300,7 @@ void StackingContext::paint(PaintContext& context) const
if (opacity == 0.0f)
return;
RecordingPainterStateSaver saver(context.painter());
RecordingPainterStateSaver saver(context.recording_painter());
auto to_device_pixels_scale = float(context.device_pixels_per_css_pixel());
RecordingPainter::PushStackingContextParams push_stacking_context_params {
@ -325,9 +325,9 @@ void StackingContext::paint(PaintContext& context) const
};
}
context.painter().push_stacking_context(push_stacking_context_params);
context.recording_painter().push_stacking_context(push_stacking_context_params);
paint_internal(context);
context.painter().pop_stacking_context();
context.recording_painter().pop_stacking_context();
}
Gfx::FloatPoint StackingContext::compute_transform_origin() const