1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 05:37:44 +00:00

LibWeb: Move border corner bitmap getter/cache to function

This will allow the same bitmap to be shared between border,
background, and various other corner clipping code.
This commit is contained in:
MacDue 2022-06-15 21:13:44 +01:00 committed by Linus Groh
parent 81a3ec0692
commit 4dfbbd5965
2 changed files with 32 additions and 22 deletions

View file

@ -56,6 +56,9 @@ struct BordersData {
CSS::BorderData bottom;
CSS::BorderData left;
};
RefPtr<Gfx::Bitmap> get_cached_corner_bitmap(Gfx::IntSize const& corners_size);
void paint_border(PaintContext& context, BorderEdge edge, Gfx::IntRect const& rect, BorderRadiiData const& border_radii_data, BordersData const& borders_data);
void paint_all_borders(PaintContext& context, Gfx::FloatRect const& bordered_rect, BorderRadiiData const& border_radii_data, BordersData const&);