summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-09-23 16:40:58 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-09-23 16:40:58 +0000
commite4a91f380ccd6f6b10a77dbd132fc670c88e28bf (patch)
tree1bd6edd5940fb36a861dcb219bcd800aeb269989 /render/layout.c
parent90286732599d1b2f1ca505f73c169a08f655012e (diff)
downloadnetsurf-e4a91f380ccd6f6b10a77dbd132fc670c88e28bf.tar.gz
netsurf-e4a91f380ccd6f6b10a77dbd132fc670c88e28bf.tar.bz2
Move css_fixed and css_unit variables to where they're used.
svn path=/trunk/netsurf/; revision=12868
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c
index 283892f79..13308af2b 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -2249,8 +2249,6 @@ bool layout_line(struct box *first, int *width, int *y,
#endif
for (x = 0, b = first; x <= x1 - x0 && b != 0; b = b->next) {
- css_fixed value = 0;
- css_unit unit = CSS_UNIT_PX;
assert(b->type == BOX_INLINE || b->type == BOX_INLINE_BLOCK ||
b->type == BOX_FLOAT_LEFT ||
@@ -2434,6 +2432,8 @@ bool layout_line(struct box *first, int *width, int *y,
if (b->object && content_get_type(b->object) == CONTENT_HTML &&
b->width !=
content_get_available_width(b->object)) {
+ css_fixed value = 0;
+ css_unit unit = CSS_UNIT_PX;
enum css_height_e htype = css_computed_height(b->style,
&value, &unit);