diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2018-01-05 23:20:21 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2018-01-05 23:20:21 +0000 |
commit | 891758bb6f363f10f9a673b167230735a9183244 (patch) | |
tree | 6059c45898a74fe06300f73f4cd75b3571fd2c75 /render/html_object.c | |
parent | 7bd1fb50c6415a21fae22f7bd534894e02b512bf (diff) | |
parent | 6be6fa1b2197ffe6e511c5eff9abe14d883f8478 (diff) | |
download | netsurf-891758bb6f363f10f9a673b167230735a9183244.tar.gz netsurf-891758bb6f363f10f9a673b167230735a9183244.tar.bz2 |
Merge branch 'tlsa/libcss-units'
Diffstat (limited to 'render/html_object.c')
-rw-r--r-- | render/html_object.c | 6 |
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)); } |