1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-29 03:17:53 -04:00

init_template_by_style: collapse some case statements

After commit b66d2bec67 'document: Unify text style -> screen attribute handling', the case statements for CSS_PT_FONT_WEIGHT, CSS_PT_FONT_STYLE, and CSS_PT_TEXT_DECORATION all have common code and therefore collapse nicely.
This commit is contained in:
Miciah Dashiel Butler Masters 2007-08-30 23:31:20 +00:00 committed by Miciah Dashiel Butler Masters
parent 5191ed82a1
commit f04bc1c7d1

View File

@ -56,11 +56,7 @@ init_template_by_style(struct screen_char *template, struct document_options *op
style.fg = property->value.color;
break;
case CSS_PT_FONT_WEIGHT:
style.attr |= property->value.font_attribute.add;
break;
case CSS_PT_FONT_STYLE:
style.attr |= property->value.font_attribute.add;
break;
case CSS_PT_TEXT_DECORATION:
style.attr |= property->value.font_attribute.add;
break;