mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb: Pass sizes instead of rects to to_gfx_scaling_mode()
Position is irrelevant when determining the right scaling mode. No functional changes.
This commit is contained in:
parent
3f6cbeb87e
commit
d352c4673c
Notes:
github-actions[bot]
2025-11-12 15:00:11 +00:00
Author: https://github.com/gmta
Commit: d352c4673c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6792
Reviewed-by: https://github.com/kalenikaliaksandr ✅
7 changed files with 11 additions and 10 deletions
|
|
@ -272,7 +272,7 @@ Optional<Gfx::Filter> SVGFilterElement::gfx_filter(Layout::NodeWithStyle const&
|
|||
return IterationDecision::Continue;
|
||||
|
||||
auto dest_rect = Gfx::enclosing_int_rect(paintable_box->absolute_rect().to_type<float>());
|
||||
auto scaling_mode = CSS::to_gfx_scaling_mode(paintable_box->computed_values().image_rendering(), *src_rect, dest_rect);
|
||||
auto scaling_mode = CSS::to_gfx_scaling_mode(paintable_box->computed_values().image_rendering(), src_rect->size(), dest_rect.size());
|
||||
root_filter = Gfx::Filter::image(*bitmap, *src_rect, dest_rect, scaling_mode);
|
||||
update_result_map(*image_primitive);
|
||||
} else if (auto* merge_primitive = as_if<SVGFEMergeElement>(node)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue