mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 05:07:35 +00:00
LibWeb: Remove params
suffix from paint_{inner}outer_box_shadow
This commit is contained in:
parent
b1c5026b81
commit
5eef78bcd8
Notes:
github-actions[bot]
2025-08-01 11:01:57 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 5eef78bcd8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5676
Reviewed-by: https://github.com/gmta ✅
3 changed files with 6 additions and 6 deletions
|
@ -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 });
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue