mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibWeb: Prevent double promotion in paint_background
This commit is contained in:
parent
007f3cdb00
commit
58c4e266e9
Notes:
sideshowbarker
2024-07-17 07:38:17 +09:00
Author: https://github.com/implicitfield Commit: https://github.com/SerenityOS/serenity/commit/58c4e266e9 Pull-request: https://github.com/SerenityOS/serenity/pull/18522 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/alimpfard
@ -252,7 +252,7 @@ void paint_background(PaintContext& context, Layout::NodeWithStyleAndBoxModelMet
|
||||
x_step = image_rect.width();
|
||||
repeat_x = false;
|
||||
} else {
|
||||
auto space = fmod(background_positioning_area.width().to_float(), image_rect.width().to_float());
|
||||
auto space = fmod(background_positioning_area.width().to_double(), image_rect.width().to_double());
|
||||
x_step = image_rect.width() + (space / static_cast<double>(whole_images - 1));
|
||||
repeat_x = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user