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:
parent
81a3ec0692
commit
4dfbbd5965
2 changed files with 32 additions and 22 deletions
|
@ -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&);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue