LibGfx+LibWeb: Do not ignore corner radius if it is defined in one axis

This commit is contained in:
Aliaksandr Kalenik 2024-01-15 14:16:23 +01:00
parent 72dd37438d
commit 6b7b9ca1c4
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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)