summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/handlers/css/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/content/handlers/css/utils.c b/content/handlers/css/utils.c
index b6a77e481..dd669c629 100644
--- a/content/handlers/css/utils.c
+++ b/content/handlers/css/utils.c
@@ -248,8 +248,7 @@ css_fixed nscss_len2px(
break;
}
- px_per_unit = FDIV(FMUL(px_per_unit, nscss_screen_dpi),
- nscss_baseline_pixel_density);
+ px_per_unit = nscss_pixels_css_to_physical(px_per_unit);
/* Ensure we round px_per_unit to the nearest whole number of pixels:
* the use of FIXTOINT() below will truncate. */