LibWeb: Remove params suffix from paint_{inner}outer_box_shadow

This commit is contained in:
Aliaksandr Kalenik 2025-08-01 12:07:17 +02:00 committed by Jelle Raaijmakers
commit 5eef78bcd8
Notes: github-actions[bot] 2025-08-01 11:01:57 +00:00
3 changed files with 6 additions and 6 deletions

View file

@ -363,12 +363,12 @@ void DisplayListRecorder::apply_backdrop_filter(Gfx::IntRect const& backdrop_reg
});
}
void DisplayListRecorder::paint_outer_box_shadow_params(PaintBoxShadowParams params)
void DisplayListRecorder::paint_outer_box_shadow(PaintBoxShadowParams params)
{
APPEND(PaintOuterBoxShadow { .box_shadow_params = params });
}
void DisplayListRecorder::paint_inner_box_shadow_params(PaintBoxShadowParams params)
void DisplayListRecorder::paint_inner_box_shadow(PaintBoxShadowParams params)
{
APPEND(PaintInnerBoxShadow { .box_shadow_params = params });
}

View file

@ -136,8 +136,8 @@ public:
void apply_backdrop_filter(Gfx::IntRect const& backdrop_region, BorderRadiiData const& border_radii_data, Gfx::Filter const& backdrop_filter);
void paint_outer_box_shadow_params(PaintBoxShadowParams params);
void paint_inner_box_shadow_params(PaintBoxShadowParams params);
void paint_outer_box_shadow(PaintBoxShadowParams params);
void paint_inner_box_shadow(PaintBoxShadowParams params);
void paint_text_shadow(int blur_radius, Gfx::IntRect bounding_rect, Gfx::IntRect text_rect, Gfx::GlyphRun const&, double glyph_run_scale, Color color, Gfx::FloatPoint draw_location);
void fill_rect_with_rounded_corners(Gfx::IntRect const& rect, Color color, CornerRadius top_left_radius, CornerRadius top_right_radius, CornerRadius bottom_right_radius, CornerRadius bottom_left_radius);

View file

@ -56,10 +56,10 @@ void paint_box_shadow(DisplayListRecordingContext& context,
auto shrinked_border_radii = border_radii;
shrinked_border_radii.shrink(borders_data.top.width, borders_data.right.width, borders_data.bottom.width, borders_data.left.width);
ScopedCornerRadiusClip corner_clipper { context, device_content_rect, shrinked_border_radii, CornerClip::Outside };
context.display_list_recorder().paint_inner_box_shadow_params(params);
context.display_list_recorder().paint_inner_box_shadow(params);
} else {
ScopedCornerRadiusClip corner_clipper { context, device_content_rect, border_radii, CornerClip::Inside };
context.display_list_recorder().paint_outer_box_shadow_params(params);
context.display_list_recorder().paint_outer_box_shadow(params);
}
}
}