Skip to content

Commit b924490

Browse files
committed
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.
1 parent d352c46 commit b924490

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Libraries/LibWeb/CSS/ComputedValues.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,6 @@ struct TextDecorationThickness {
455455
// FIXME: Find a better place for this helper.
456456
inline Gfx::ScalingMode to_gfx_scaling_mode(ImageRendering css_value, Gfx::IntSize source, Gfx::IntSize target)
457457
{
458-
if (source == target)
459-
return Gfx::ScalingMode::None;
460-
461458
switch (css_value) {
462459
case ImageRendering::Auto:
463460
case ImageRendering::HighQuality:

0 commit comments

Comments
 (0)