Revert "LibWeb: Do not deform bitmaps partially outside the img-box"

This change broken image rendering.

This reverts commit e055927ead.
This commit is contained in:
Aliaksandr Kalenik 2025-03-05 17:25:13 +01:00 committed by Alexander Kalenik
commit 16b14273d1
Notes: github-actions[bot] 2025-03-05 18:45:42 +00:00
36 changed files with 22 additions and 1752 deletions

View file

@ -130,8 +130,7 @@ void VideoPaintable::paint(PaintContext& context, PaintPhase phase) const
auto paint_frame = [&](auto const& frame) {
auto scaling_mode = to_gfx_scaling_mode(computed_values().image_rendering(), frame->rect(), video_rect.to_type<int>());
auto dst_rect = video_rect.to_type<int>();
context.display_list_recorder().draw_scaled_immutable_bitmap(dst_rect, dst_rect, Gfx::ImmutableBitmap::create(*frame), scaling_mode);
context.display_list_recorder().draw_scaled_immutable_bitmap(video_rect.to_type<int>(), Gfx::ImmutableBitmap::create(*frame), frame->rect(), scaling_mode);
};
auto paint_transparent_black = [&]() {