From af79781399684109f3a79d31cc41f6f19b3a284f Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Sun, 6 Jul 2025 22:10:28 +0200 Subject: [PATCH] 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()`. --- Libraries/LibWeb/Painting/ImagePaintable.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Libraries/LibWeb/Painting/ImagePaintable.cpp b/Libraries/LibWeb/Painting/ImagePaintable.cpp index 0ec5ef2c755..034f9e7c7b9 100644 --- a/Libraries/LibWeb/Painting/ImagePaintable.cpp +++ b/Libraries/LibWeb/Painting/ImagePaintable.cpp @@ -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); } } }