Avoid iterating the input string several times setInnerText() / setOuterText(), to look for new lines and carriage return characters.
Pull request: https://github.com/WebKit/WebKit/pull/396
Committed r293491 (250024@main): <https://commits.webkit.org/250024@main> Reviewed commits have been landed. Closing PR #396 and removing active labels.
<rdar://problem/92370477>