mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00: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
Notes:
github-actions[bot]
2025-07-06 20:57:26 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: af79781399
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5334
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 0 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue