LibWeb: Undo ScalingMode::None for identical bitmap sizes

We always want to return the mapped scaling mode here, since the bitmap
might end up transformed, scaled, etc. and we do not want to fall back
to nearest neighbour in those cases.
This commit is contained in:
Jelle Raaijmakers 2025-11-12 17:04:09 +01:00 committed by Jelle Raaijmakers
parent d352c4673c
commit b9244903fc
Notes: github-actions[bot] 2025-11-12 16:44:17 +00:00

View file

@ -455,9 +455,6 @@ struct TextDecorationThickness {
// FIXME: Find a better place for this helper.
inline Gfx::ScalingMode to_gfx_scaling_mode(ImageRendering css_value, Gfx::IntSize source, Gfx::IntSize target)
{
if (source == target)
return Gfx::ScalingMode::None;
switch (css_value) {
case ImageRendering::Auto:
case ImageRendering::HighQuality: