mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:37:45 +00:00
LibWeb: Make private RecordingPainter::state()
Removes usage of `RecordingPainter::state()` and makes it private. No behavior change intended.
This commit is contained in:
parent
55c483b763
commit
f361b8c000
5 changed files with 10 additions and 10 deletions
|
@ -29,13 +29,13 @@ void RecordingPainter::sample_under_corners(u32 id, CornerRadii corner_radii, Gf
|
|||
push_command(SampleUnderCorners {
|
||||
id,
|
||||
corner_radii,
|
||||
border_rect,
|
||||
border_rect = state().translation.map(border_rect),
|
||||
corner_clip });
|
||||
}
|
||||
|
||||
void RecordingPainter::blit_corner_clipping(u32 id, Gfx::IntRect border_rect)
|
||||
{
|
||||
push_command(BlitCornerClipping { id, border_rect });
|
||||
push_command(BlitCornerClipping { id, border_rect = state().translation.map(border_rect) });
|
||||
}
|
||||
|
||||
void RecordingPainter::fill_rect(Gfx::IntRect const& rect, Color color)
|
||||
|
@ -323,6 +323,7 @@ void RecordingPainter::apply_backdrop_filter(Gfx::IntRect const& backdrop_region
|
|||
|
||||
void RecordingPainter::paint_outer_box_shadow_params(PaintOuterBoxShadowParams params)
|
||||
{
|
||||
params.device_content_rect = state().translation.map(params.device_content_rect.to_type<int>()).to_type<DevicePixels>();
|
||||
push_command(PaintOuterBoxShadow {
|
||||
.outer_box_shadow_params = params,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue