From e29db0c3414f6da69d7e11505819346fed9267a3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 Apr 2025 15:48:45 +0300 Subject: update for litehtml --- libs/litehtml/src/background.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libs/litehtml/src/background.cpp') diff --git a/libs/litehtml/src/background.cpp b/libs/litehtml/src/background.cpp index 3ef69b862d..eaf115da72 100644 --- a/libs/litehtml/src/background.cpp +++ b/libs/litehtml/src/background.cpp @@ -1,8 +1,9 @@ #include -#include "html.h" #include "background.h" #include "render_item.h" +#include "document.h" +#include "document_container.h" #ifndef M_PI # define M_PI 3.14159265358979323846 @@ -807,7 +808,7 @@ bool litehtml::background_layer::gradient_base::prepare_color_points(float line_ { if (!color_points.empty()) { - color_points.back().hint = item.length ? + color_points.back().hint = item.length ? normalize_length(*item.length, line_len) : *item.angle / 360; } -- cgit v1.2.3