From 0bbaf1d24d4b0b7a6944438e689a81d820be0f3d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 23 Oct 2013 12:48:16 +0100 Subject: Layout doesn't need to handle the old insane textarea box splitting now. Fixes Coverity:1109882. --- render/layout.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index 14d06ee5a..9827cda28 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2184,18 +2184,7 @@ static bool layout_text_box_split(html_content *content, c2->flags |= CLONE; /* Set remaining text in c2 */ - if (split_box->parent->parent->gadget != NULL) { - /* Inside a form text input / textarea, special case */ - /* TODO: Move text inputs to core textarea widget and remove - * this */ - c2->text = talloc_strndup(content->bctx, - split_box->text + used_length, - split_box->length - used_length); - if (!c2->text) - return false; - } else { - c2->text += used_length; - } + c2->text += used_length; /* Set c2 according to the remaining text */ c2->width -= new_width + space_width; -- cgit v1.2.3