mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Fix ScopedCornerRadiusClip emitting unbalanced restore()
...when `m_do_apply` is false.
This commit is contained in:
parent
9e232a70c3
commit
ac4151a00b
Notes:
github-actions[bot]
2025-07-06 17:22:38 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: ac4151a00b
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5329
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ ScopedCornerRadiusClip::ScopedCornerRadiusClip(PaintContext& context, DevicePixe
|
|||
|
||||
ScopedCornerRadiusClip::~ScopedCornerRadiusClip()
|
||||
{
|
||||
if (!m_has_radius && m_do_apply)
|
||||
if (!m_do_apply || !m_has_radius)
|
||||
return;
|
||||
m_context.display_list_recorder().restore();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue