aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--src/styleengine.cc6
2 files changed, 3 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 9e605ba9..cc8e444a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -37,6 +37,7 @@ dillo-3.1 [not released yet]
- Handle irix's version of vsnprintf().
- INPUT, TEXTAREA placeholder attribute.
- Better notification when user's domainrc settings block page redirection.
+ - Fix bug with font_factor preference and CSS font-size:(larger|smaller).
Patches: corvid
+- Avoid requesting background images if an ancestor has display:none.
- Ignore built-in search url if any are specified in dillorc.
diff --git a/src/styleengine.cc b/src/styleengine.cc
index 763d41e3..c005f881 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