summaryrefslogtreecommitdiff
path: root/render/html_object.c
diff options
context:
space:
mode:
authorSven Weidauer <sven@5sw.de>2018-01-16 20:47:28 +0100
committerSven Weidauer <sven@5sw.de>2018-01-16 20:47:28 +0100
commit7b4163e0216538823630113ed7534c319e19c385 (patch)
treefc495db2c19a94061be924d37ca50d2bb1b974e8 /render/html_object.c
parent40ae70a811c23b6ce0bf02a6ecbe9eab098ee52c (diff)
parentc03405b3b3b28942d50f672e897be5cfc0f6c540 (diff)
downloadnetsurf-7b4163e0216538823630113ed7534c319e19c385.tar.gz
netsurf-7b4163e0216538823630113ed7534c319e19c385.tar.bz2
Merge remote-tracking branch 'origin/master' into svenw/cocoa
Diffstat (limited to 'render/html_object.c')
-rw-r--r--render/html_object.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/render/html_object.c b/render/html_object.c
index e98bdba0b..fb9e7b090 100644
--- a/render/html_object.c
+++ b/render/html_object.c
@@ -227,7 +227,8 @@ html_object_callback(hlcache_handle *object,
if (hunit == CSS_UNIT_PCT) {
l = (width - w) * hpos / INTTOFIX(100);
} else {
- l = FIXTOINT(nscss_len2px(hpos, hunit,
+ l = FIXTOINT(nscss_len2px(&c->len_ctx,
+ hpos, hunit,
box->style));
}
@@ -235,7 +236,8 @@ html_object_callback(hlcache_handle *object,
if (vunit == CSS_UNIT_PCT) {
t = (height - h) * vpos / INTTOFIX(100);
} else {
- t = FIXTOINT(nscss_len2px(vpos, vunit,
+ t = FIXTOINT(nscss_len2px(&c->len_ctx,
+ vpos, vunit,
box->style));
}