mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:57:34 +00:00
LibWeb: Add option to allocate new bitmap for BorderRadiusCornerClipper
This will be needed for overflow: hidden, that clips things which may themselves use the BorderRadiusCornerClipper.
This commit is contained in:
parent
13b4d91f66
commit
9a97adf121
2 changed files with 15 additions and 5 deletions
|
@ -18,7 +18,12 @@ enum class CornerClip {
|
|||
|
||||
class BorderRadiusCornerClipper {
|
||||
public:
|
||||
static ErrorOr<BorderRadiusCornerClipper> create(Gfx::IntRect const& border_rect, BorderRadiiData const& border_radii, CornerClip corner_clip = CornerClip::Outside);
|
||||
enum class UseCachedBitmap {
|
||||
Yes,
|
||||
No
|
||||
};
|
||||
|
||||
static ErrorOr<BorderRadiusCornerClipper> create(Gfx::IntRect const& border_rect, BorderRadiiData const& border_radii, CornerClip corner_clip = CornerClip::Outside, UseCachedBitmap use_cached_bitmap = UseCachedBitmap::Yes);
|
||||
|
||||
void sample_under_corners(Gfx::Painter& page_painter);
|
||||
void blit_corner_clipping(Gfx::Painter& page_painter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue