From 2fff3afe1a29825213a2eb134065834ae08b1140 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 29 Dec 2014 17:53:28 +0000 Subject: Tiny optimisation for computed style absolute valuification. --- src/select/computed.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/select') diff --git a/src/select/computed.c b/src/select/computed.c index 8054b02..23701d7 100644 --- a/src/select/computed.c +++ b/src/select/computed.c @@ -1324,9 +1324,7 @@ css_error compute_absolute_border_side_width(css_computed_style *style, } else if (type == CSS_BORDER_WIDTH_THICK) { length = INTTOFIX(4); unit = CSS_UNIT_PX; - } - - if (unit == CSS_UNIT_EX) { + } else if (unit == CSS_UNIT_EX) { length = FMUL(length, ex_size->value); unit = ex_size->unit; } -- cgit v1.2.3