diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-03 15:40:27 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2012-10-03 15:40:27 +0100 |
commit | b6202ab8cf8e80ea17bb47a5bf64f0fbb3d2fb29 (patch) | |
tree | 4abd135f3238d7c1c7c1414a95767d1ac313badb /render | |
parent | 3d337642bd51aa6bd5e40fc5cdcc1b1062b1bdfc (diff) | |
download | netsurf-b6202ab8cf8e80ea17bb47a5bf64f0fbb3d2fb29.tar.gz netsurf-b6202ab8cf8e80ea17bb47a5bf64f0fbb3d2fb29.tar.bz2 |
Remove pointless churn when text box has white-space:nowrap.
Diffstat (limited to 'render')
-rw-r--r-- | render/box_construct.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/render/box_construct.c b/render/box_construct.c index 37fdede93..2580b67d9 100644 --- a/render/box_construct.c +++ b/render/box_construct.c @@ -1249,27 +1249,6 @@ bool box_construct_text(struct box_construct_ctx *ctx) css_computed_text_transform( props.parent_style)); - if (css_computed_white_space(props.parent_style) == - CSS_WHITE_SPACE_NOWRAP) { - unsigned int i; - - for (i = 0; i != box->length && - box->text[i] != ' '; ++i) - ; /* no body */ - - if (i != box->length) { - /* there is a space in text block and we - * want all spaces to be converted to NBSP - */ - /*box->text = cnv_space2nbsp(text); - if (!box->text) { - free(text); - goto no_memory; - } - box->length = strlen(box->text);*/ - } - } - box_add_child(props.inline_container, box); if (box->text[0] == ' ') { |