LibWeb: Delete m_clipping_overflow in PaintableBox

This commit is contained in:
Aliaksandr Kalenik
2024-07-31 22:07:03 +03:00
committed by Andreas Kling
parent 23cfee2205
commit c47ec26bcd
2 changed files with 1 additions and 5 deletions

View File

@@ -530,7 +530,6 @@ void PaintableBox::apply_clip_overflow_rect(PaintContext& context, PaintPhase ph
if (clip_rect().has_value()) {
auto overflow_clip_rect = clip_rect().value();
m_clipping_overflow = true;
context.display_list_recorder().save();
context.display_list_recorder().add_clip_rect(context.enclosing_device_rect(overflow_clip_rect).to_type<int>());
auto const& border_radii_clips = this->border_radii_clips();
@@ -551,8 +550,7 @@ void PaintableBox::clear_clip_overflow_rect(PaintContext& context, PaintPhase ph
if (!AK::first_is_one_of(phase, PaintPhase::Background, PaintPhase::Border, PaintPhase::TableCollapsedBorder, PaintPhase::Foreground, PaintPhase::Outline))
return;
if (m_clipping_overflow) {
m_clipping_overflow = false;
if (clip_rect().has_value()) {
context.display_list_recorder().restore();
}
}