diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2009-02-02 13:54:48 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2009-02-02 13:54:48 +0000 |
commit | f1c7c7f072a18d56005075550a11d10259a43c45 (patch) | |
tree | d2ca4e7d43758c71439f16b0ab0e444cf254b6e6 /render/layout.c | |
parent | 3cffe17cc79fa4bf6d755b88157d6d24355bb4c2 (diff) | |
download | netsurf-f1c7c7f072a18d56005075550a11d10259a43c45.tar.gz netsurf-f1c7c7f072a18d56005075550a11d10259a43c45.tar.bz2 |
Remove unused line_height stuff for now.
svn path=/trunk/netsurf/; revision=6354
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/render/layout.c b/render/layout.c index c24b698a1..f87abe3ed 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1420,7 +1420,6 @@ bool layout_inline_container(struct box *inline_container, int width, if ((!c->object && c->text && (c->length || is_pre)) || c->type == BOX_BR) has_text_children = true; - c->line_height = 0; } /** \todo fix wrapping so that a box with horizontal scrollbar will @@ -2131,16 +2130,6 @@ bool layout_line(struct box *first, int *width, int *y, (d->style->position == CSS_POSITION_ABSOLUTE || d->style->position == CSS_POSITION_FIXED)) continue; - if (d->type == BOX_INLINE && d->inline_end && - d->next != d->inline_end) { - if (d->height > d->inline_end->line_height) - d->inline_end->line_height = d->height; - for (struct box *il = d; il && il != d->inline_end; - il = il->next) { - if (d->height > il->line_height) - il->line_height = d->height; - } - } if ((d->type == BOX_INLINE && (d->object || d->gadget)) || d->type == BOX_INLINE_BLOCK) { h = d->margin[TOP] + d->border[TOP] + d->padding[TOP] + @@ -2149,13 +2138,10 @@ bool layout_line(struct box *first, int *width, int *y, if (used_height < h) used_height = h; } - if (d->line_height > used_height) - used_height = d->line_height; - } + if (d->type == BOX_TEXT && d->height > used_height) + used_height = d->height; - /* Set the line_height for the boxes on the current line */ - for (d = first; d != b; d = d->next) - d->line_height = used_height; + } first->inline_new_line = true; |