LibWeb: Remove unnecessary apply_own_clip_rect() in ImagePaintable

Own clip rect is alredy applied in `PaintableBox::before_paint()` for
all image paintables, so there's no need to do it once again in
`ImagePaintable::paint()`.
This commit is contained in:
Aliaksandr Kalenik 2025-07-06 22:10:28 +02:00 committed by Tim Ledbetter
commit af79781399
Notes: github-actions[bot] 2025-07-06 20:57:26 +00:00

View file

@ -152,9 +152,7 @@ void ImagePaintable::paint(PaintContext& context, PaintPhase phase) const
context.rounded_device_pixels(scaled_bitmap_height).value()
};
apply_own_clip_rect(context, phase);
context.display_list_recorder().draw_scaled_immutable_bitmap(draw_rect, image_int_rect_device_pixels, *bitmap, scaling_mode);
clear_own_clip_rect(context, phase);
}
}
}