There is a lot of duplication when handling white space characters in WebCore. The code should be shared among the different call sites. See https://bugs.webkit.org/show_bug.cgi?id=21945#c7 for more details.
@Anne - I think it is not needed after your clean-up on isASCIIWhitespace etc. Should we go ahead and close it?
There's more work to be done, but we can dupe this. *** This bug has been marked as a duplicate of bug 255467 ***