mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
LibGfx+LibWeb: Do not ignore corner radius if it is defined in one axis
This commit is contained in:
parent
72dd37438d
commit
6b7b9ca1c4
2 changed files with 2 additions and 2 deletions
|
@ -63,7 +63,7 @@ public:
|
||||||
|
|
||||||
inline operator bool() const
|
inline operator bool() const
|
||||||
{
|
{
|
||||||
return horizontal_radius > 0 && vertical_radius > 0;
|
return horizontal_radius > 0 || vertical_radius > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
Gfx::IntRect as_rect() const
|
Gfx::IntRect as_rect() const
|
||||||
|
|
|
@ -21,7 +21,7 @@ struct BorderRadiusData {
|
||||||
|
|
||||||
inline operator bool() const
|
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)
|
inline void shrink(CSSPixels horizontal, CSSPixels vertical)
|
||||||
|
|
Loading…
Add table
Reference in a new issue