summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-12-29 17:53:28 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-12-29 17:53:28 +0000
commit2fff3afe1a29825213a2eb134065834ae08b1140 (patch)
tree6119cd6a626bf14ec64dc90d70c8549f14818217 /src
parent3eb5209c42d45458c34e554cef6a626f0326b511 (diff)
downloadlibcss-2fff3afe1a29825213a2eb134065834ae08b1140.tar.gz
libcss-2fff3afe1a29825213a2eb134065834ae08b1140.tar.bz2
Tiny optimisation for computed style absolute valuification.
Diffstat (limited to 'src')
-rw-r--r--src/select/computed.c4
1 files changed, 1 insertions, 3 deletions
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;
}