From e4a91f380ccd6f6b10a77dbd132fc670c88e28bf Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 23 Sep 2011 16:40:58 +0000 Subject: Move css_fixed and css_unit variables to where they're used. svn path=/trunk/netsurf/; revision=12868 --- render/layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render/layout.c') 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); -- cgit v1.2.3