cssvalue: Fix the scaling factors for 'smaller' and 'larger'

They were reversed. Looks like a bad case of copy/paste failure.
This commit is contained in:
Benjamin Otte 2012-12-01 16:23:08 +01:00
parent 5942099f00
commit 1688403ae6

View File

@ -203,7 +203,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value,
else
font_size = _gtk_css_font_size_get_default (provider);
/* XXX: This is what WebKit does... */
font_size *= 1.2;
font_size /= 1.2;
break;
case GTK_CSS_FONT_SIZE_LARGER:
*dependencies = GTK_CSS_DEPENDS_ON_PARENT;
@ -212,7 +212,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value,
else
font_size = _gtk_css_font_size_get_default (provider);
/* XXX: This is what WebKit does... */
font_size /= 1.2;
font_size *= 1.2;
break;
}