WebCore:
Reviewed by Darin.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7602
Only use fixupChar for entities
* html/HTMLTokenizer.cpp: Only use fixUpChar() when handling entities.
(WebCore::HTMLTokenizer::parseSpecial):
(WebCore::HTMLTokenizer::parseText):
(WebCore::HTMLTokenizer::parseTag):
(WebCore::HTMLTokenizer::write):
* platform/StreamingTextDecoder.cpp:
(WebCore::StreamingTextDecoder::convert): Remove the special case for Latin-1, because it is already handled
via effectiveEncoding().
* platform/StreamingTextDecoder.h: Remove convertLatin1().
LayoutTests:
Tests that Latin-1 is handled as windows-1252
(see http://bugzilla.opendarwin.org/show_bug.cgi?id=7602). Some existing tests
already did cover this, but only indirectly.
* fast/encoding/latin1-winlatin-expected.txt: Added.
* fast/encoding/latin1-winlatin.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13863
268f45cc-cd09-0410-ab3c-
d52691b4dbfc