WebCore:
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Apr 2006 17:03:16 +0000 (17:03 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Apr 2006 17:03:16 +0000 (17:03 +0000)
commitb56e3176de7d2f953d37c9e8addd01006ccefe82
tree5fc9b707f3b8397427f6e5780c3c17c948786c64
parenta71b9ecab1d3588675d4bd3e0e7dfff0806c2643
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
LayoutTests/ChangeLog
LayoutTests/fast/encoding/latin1-winlatin-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/latin1-winlatin.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLTokenizer.cpp
WebCore/platform/StreamingTextDecoder.cpp
WebCore/platform/StreamingTextDecoder.h