From 59775fee0bd17390ced7af4c71e7500b9c9b080a Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 21 Feb 2015 19:04:40 +0000 Subject: update some urls in comments --- src/styleengine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/styleengine.cc') diff --git a/src/styleengine.cc b/src/styleengine.cc index 98b02b69..763d41e3 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -1034,7 +1034,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}"; -- cgit v1.2.3 From fd3df37d0596e4d082d9d821179119d12808dfee Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 9 May 2015 02:54:15 +0000 Subject: fix font-size:(larger|smaller) --- ChangeLog | 1 + src/styleengine.cc | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/styleengine.cc') 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 -- cgit v1.2.3