mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
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:
parent
d352c4673c
commit
b9244903fc
Notes:
github-actions[bot]
2025-11-12 16:44:17 +00:00
Author: https://github.com/gmta
Commit: b9244903fc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6799
Reviewed-by: https://github.com/kalenikaliaksandr ✅
1 changed files with 0 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue