mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-04 19:55:32 +00:00
Revert "LibGfx+LibWeb: Do not ignore corner radius if it is defined..."
This reverts commit 6b7b9ca1c4b32e76e0afef6bca0cb300e615b576.
The whole corner radius is invisible if it has 0 radius in any axis, so
the reverted commit was a mistake that led to error checking during
painting command execution b61aab66d9 to
avoid crashing on attempt to allocate 0 size bitmap.
This commit is contained in:
committed by
Andreas Kling
parent
49f75d2c0f
commit
9be65e35b5
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
inline operator bool() const
|
||||
{
|
||||
return horizontal_radius > 0 || vertical_radius > 0;
|
||||
return horizontal_radius > 0 && vertical_radius > 0;
|
||||
}
|
||||
|
||||
Gfx::IntRect as_rect() const
|
||||
|
||||
@@ -21,7 +21,7 @@ struct BorderRadiusData {
|
||||
|
||||
inline operator bool() const
|
||||
{
|
||||
return horizontal_radius > 0 || vertical_radius > 0;
|
||||
return horizontal_radius > 0 && vertical_radius > 0;
|
||||
}
|
||||
|
||||
inline void shrink(CSSPixels horizontal, CSSPixels vertical)
|
||||
|
||||
Reference in New Issue
Block a user