From b6202ab8cf8e80ea17bb47a5bf64f0fbb3d2fb29 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 3 Oct 2012 15:40:27 +0100 Subject: Remove pointless churn when text box has white-space:nowrap. --- render/box_construct.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'render') 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] == ' ') { -- cgit v1.2.3