mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +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:
parent
49f75d2c0f
commit
9be65e35b5
Notes:
sideshowbarker
2024-07-16 23:03:06 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: 9be65e35b5
Pull-request: https://github.com/SerenityOS/serenity/pull/24453
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue