Layout doesn't need to handle the old insane textarea box splitting now. Fixes Coverity:1109882.
This commit is contained in:
parent
3e08819db9
commit
0bbaf1d24d
|
@ -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;
|
||||
}
|
||||
|
||||
/* Set c2 according to the remaining text */
|
||||
c2->width -= new_width + space_width;
|
||||
|
|
Loading…
Reference in New Issue