summaryrefslogtreecommitdiff
path: root/libs/litehtml/src/background.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-28 15:48:45 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-28 15:48:45 +0300
commite29db0c3414f6da69d7e11505819346fed9267a3 (patch)
tree67310fd9ce926aaeb0101a7bf79dfe30ff8eba33 /libs/litehtml/src/background.cpp
parent24da6586bfdb3e41cc8240e41162b016e10b68c3 (diff)
update for litehtml
Diffstat (limited to 'libs/litehtml/src/background.cpp')
-rw-r--r--libs/litehtml/src/background.cpp5
1 files changed, 3 insertions, 2 deletions
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 <cmath>
-#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;
}