diff options
author | James Bursa <james@netsurf-browser.org> | 2004-03-13 20:45:41 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-03-13 20:45:41 +0000 |
commit | 3f6812c11275d7980b8216b8f556a8191a7f4b1f (patch) | |
tree | 585774851ca1a8620db1ade2babf5d917a3b642b /css | |
parent | a25c9bb1c38c00aaed91c0d30b27f6ed3a8d42d0 (diff) | |
download | netsurf-3f6812c11275d7980b8216b8f556a8191a7f4b1f.tar.gz netsurf-3f6812c11275d7980b8216b8f556a8191a7f4b1f.tar.bz2 |
[project @ 2004-03-13 20:45:41 by bursa]
Use option_font_size when calculating keyword font-size.
svn path=/import/netsurf/; revision=618
Diffstat (limited to 'css')
-rw-r--r-- | css/ruleset.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/css/ruleset.c b/css/ruleset.c index 82385956d..a51868d67 100644 --- a/css/ruleset.c +++ b/css/ruleset.c @@ -2,7 +2,7 @@ * This file is part of NetSurf, http://netsurf.sourceforge.net/ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license - * Copyright 2003 James Bursa <bursa@users.sourceforge.net> + * Copyright 2004 James Bursa <bursa@users.sourceforge.net> */ #include <assert.h> @@ -13,6 +13,7 @@ #define NDEBUG #include "netsurf/css/css.h" #include "netsurf/content/content.h" +#include "netsurf/desktop/options.h" #include "netsurf/utils/log.h" #include "netsurf/utils/utils.h" @@ -552,7 +553,8 @@ void parse_font_size(struct css_style * const s, const struct css_node * const v if (fs != 0) { s->font_size.size = CSS_FONT_SIZE_LENGTH; s->font_size.value.length.unit = CSS_UNIT_PT; - s->font_size.value.length.value = fs->size * 10; + s->font_size.value.length.value = fs->size * + option_font_size / 10; } else if (strcasecmp(v->data, "larger") == 0) { s->font_size.size = CSS_FONT_SIZE_PERCENT; s->font_size.value.percent = SIZE_FACTOR * 100; |