mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
LibWeb: Fix ScopedCornerRadiusClip emitting unbalanced restore()
...when `m_do_apply` is false.
This commit is contained in:
parent
9e232a70c3
commit
ac4151a00b
|
|
@ -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…
Reference in New Issue
Block a user