mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Alexander Kalenik
parent
fe26c3145d
commit
16b14273d1
Notes:
github-actions[bot]
2025-03-05 18:45:42 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/16b14273d18 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3819
@@ -149,8 +149,7 @@ void ImageStyleValue::paint(PaintContext& context, DevicePixelRect const& dest_r
|
||||
{
|
||||
if (auto const* b = bitmap(m_current_frame_index, dest_rect.size().to_type<int>()); b != nullptr) {
|
||||
auto scaling_mode = to_gfx_scaling_mode(image_rendering, b->rect(), dest_rect.to_type<int>());
|
||||
auto dest_int_rect = dest_rect.to_type<int>();
|
||||
context.display_list_recorder().draw_scaled_immutable_bitmap(dest_int_rect, dest_int_rect, *b, scaling_mode);
|
||||
context.display_list_recorder().draw_scaled_immutable_bitmap(dest_rect.to_type<int>(), *b, b->rect(), scaling_mode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user