mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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:
parent
8f39aa0d4a
commit
af79781399
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user