As a followup to https://bugs.webkit.org/show_bug.cgi?id=208499, avoid creating a StringImpl just for the purpose of testing for whitespace-only.
Created attachment 397892 [details] Patch
Comment on attachment 397892 [details] Patch Note that TextManipulationController.cpp contains a function named containsOnlyHTMLSpaces.
Patch 397892 does not build
Created attachment 397925 [details] Patch for landing
Patch 397925 does not build
Created attachment 397931 [details] Patch for landing
Committed r260881: <https://trac.webkit.org/changeset/260881> All reviewed patches have been landed. Closing bug and clearing flags on attachment 397931 [details].
<rdar://problem/62579354>