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:
parent
5942099f00
commit
1688403ae6
@ -203,7 +203,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value,
|
|||||||
else
|
else
|
||||||
font_size = _gtk_css_font_size_get_default (provider);
|
font_size = _gtk_css_font_size_get_default (provider);
|
||||||
/* XXX: This is what WebKit does... */
|
/* XXX: This is what WebKit does... */
|
||||||
font_size *= 1.2;
|
font_size /= 1.2;
|
||||||
break;
|
break;
|
||||||
case GTK_CSS_FONT_SIZE_LARGER:
|
case GTK_CSS_FONT_SIZE_LARGER:
|
||||||
*dependencies = GTK_CSS_DEPENDS_ON_PARENT;
|
*dependencies = GTK_CSS_DEPENDS_ON_PARENT;
|
||||||
@ -212,7 +212,7 @@ gtk_css_value_font_size_compute (GtkCssValue *value,
|
|||||||
else
|
else
|
||||||
font_size = _gtk_css_font_size_get_default (provider);
|
font_size = _gtk_css_font_size_get_default (provider);
|
||||||
/* XXX: This is what WebKit does... */
|
/* XXX: This is what WebKit does... */
|
||||||
font_size /= 1.2;
|
font_size *= 1.2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user