summaryrefslogtreecommitdiff
path: root/src/styleengine.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-05-10 13:04:34 +0200
committerSebastian Geerken <devnull@localhost>2015-05-10 13:04:34 +0200
commitd3ca9f0f9587b29b795585b1436b46d532699ece (patch)
treeba8daf1c18a75c9bab3195855595806fff69054b /src/styleengine.cc
parenta5fb7d09a8381c2e0d35b50513379b780751e978 (diff)
parent3702a356bae1090287aa4aecb684e5c29c7af72c (diff)
Merge with main repo.
Diffstat (limited to 'src/styleengine.cc')
-rw-r--r--src/styleengine.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 4192a9ef..97ca417e 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -430,12 +430,10 @@ void StyleEngine::apply (int i, StyleAttrs *attrs, CssPropertyList *props,
fontAttrs.size = roundInt(24.2 * prefs.font_factor);
break;
case CSS_FONT_SIZE_SMALLER:
- fontAttrs.size = roundInt(fontAttrs.size * 0.83 *
- prefs.font_factor);
+ fontAttrs.size = roundInt(fontAttrs.size * 0.83);
break;
case CSS_FONT_SIZE_LARGER:
- fontAttrs.size = roundInt(fontAttrs.size * 1.2 *
- prefs.font_factor);
+ fontAttrs.size = roundInt(fontAttrs.size * 1.2);
break;
default:
assert(false); // invalid font-size enum
@@ -1040,7 +1038,7 @@ void StyleEngine::init () {
"code, tt, pre, samp, kbd {font-family: monospace}"
/* WORKAROUND: Reset font properties in tables as some
* pages rely on it (e.g. gmail).
- * http://developer.mozilla.org/En/Fixing_Table_Inheritance_in_Quirks_Mode
+ * http://developer.mozilla.org/en-US/Fixing_Table_Inheritance_in_Quirks_Mode
* has a detailed description of the issue.
*/
"table, caption {font-size: medium; font-weight: normal}";