Replace CSSParserString with StringView.
This removes the special string type the parser was using in favor of
StringView. In doing so it also makes all of the string allocations
inside the parser more explicit.
Doing this requires adding equalIgnoringASCIICase for StringView, and
also operator[], tests are included. :)
One major change is now StringView::toString() will attempt to create
an 8bit string from a 16bit StringView whenever possible. This does
mean potentially wasted work inside StringImpl::create8BitIfPossible
if callers are frequently making strings with unicode characters in
them. We should see how often this happens in practice, and probably
optimize the code in create8BitIfPossible to first scan the string
to avoid the wasted malloc.
BUG=615174
Review-Url: https://codereview.chromium.org/2024373002
Cr-Commit-Position: refs/heads/master@{#397094}
26 files changed