Added support for appending an escaped SegmentedString to another.
Added support for appending an escaped SegmentedString to another.

This was previously an assert which triggers in the situation where the HTMLEntityParser is parsing a potential named entity, but only has one or two characters of data available due to being at the end of a network packet boundary, so it 'unconsumes' them from the SegmentedString which has some special handling when only one or two characters needs unconsuming to avoid string creation. Next time the tokenizer is pumped, the SegmentedString is then appended to the HTMLSourceTracker right before the actual parsing happens (i.e. when we'd consume the previously unconsumed characters). SegmentedString::append mostly assumes the parameter string hasn't been consumed from and had an assert instead of handling this case, which hits.

R=eseidel
BUG=345726

Review URL: https://codereview.chromium.org/298803012

git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@174725 bbb929c8-8fbe-4397-9dbb-9b2b20218538

crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,ondra-novak/blink,XiaosongWei/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,modulexcite/blink,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,crosswalk-project/blink-crosswalk-efl,jtg-gg/blink,nwjs/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,ondra-novak/blink,jtg-gg/blink,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,nwjs/blink,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,ondra-novak/blink,Bysmyyr/blink-crosswalk,modulexcite/blink,modulexcite/blink,PeterWangIntel/blink-crosswalk,ondra-novak/blink,kurli/blink-crosswalk,nwjs/blink,kurli/blink-crosswalk,ondra-novak/blink,Pluto-tv/blink-crosswalk,smishenk/blink-crosswalk,ondra-novak/blink,crosswalk-project/blink-crosswalk-efl,XiaosongWei/blink-crosswalk,kurli/blink-crosswalk,ondra-novak/blink,jtg-gg/blink,nwjs/blink,PeterWangIntel/blink-crosswalk,modulexcite/blink,XiaosongWei/blink-crosswalk,nwjs/blink,hgl888/blink-crosswalk-efl,Pluto-tv/blink-crosswalk,modulexcite/blink,ondra-novak/blink,modulexcite/blink,Pluto-tv/blink-crosswalk,jtg-gg/blink,kurli/blink-crosswalk,XiaosongWei/blink-crosswalk,modulexcite/blink,PeterWangIntel/blink-crosswalk,jtg-gg/blink,smishenk/blink-crosswalk,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,nwjs/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,nwjs/blink,PeterWangIntel/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,kurli/blink-crosswalk,ondra-novak/blink,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,jtg-gg/blink,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,Bysmyyr/blink-crosswalk,smishenk/blink-crosswalk,Bysmyyr/blink-crosswalk,PeterWangIntel/blink-crosswalk,smishenk/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,nwjs/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,XiaosongWei/blink-crosswalk,Bysmyyr/blink-crosswalk,Bysmyyr/blink-crosswalk,hgl888/blink-crosswalk-efl,Bysmyyr/blink-crosswalk,jtg-gg/blink,jtg-gg/blink,kurli/blink-crosswalk,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,jtg-gg/blink,jtg-gg/blink,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,smishenk/blink-crosswalk,smishenk/blink-crosswalk,XiaosongWei/blink-crosswalk,Pluto-tv/blink-crosswalk,modulexcite/blink,nwjs/blink,smishenk/blink-crosswalk