mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 00:08:55 +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:
parent
c3d28d7f5a
commit
1b3223dd9e
Notes:
sideshowbarker
2024-07-17 09:56:35 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 1b3223dd9e
Pull-request: https://github.com/SerenityOS/serenity/pull/22069
26 changed files with 119 additions and 121 deletions
|
@ -48,10 +48,10 @@ void AudioPaintable::paint(PaintContext& context, PaintPhase phase) const
|
|||
if (phase != PaintPhase::Foreground)
|
||||
return;
|
||||
|
||||
RecordingPainterStateSaver saver { context.painter() };
|
||||
RecordingPainterStateSaver saver { context.recording_painter() };
|
||||
|
||||
auto audio_rect = context.rounded_device_rect(absolute_rect());
|
||||
context.painter().add_clip_rect(audio_rect.to_type<int>());
|
||||
context.recording_painter().add_clip_rect(audio_rect.to_type<int>());
|
||||
|
||||
ScopedCornerRadiusClip corner_clip { context, audio_rect, normalized_border_radii_data(ShrinkRadiiForBorders::Yes) };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue