2007-07-06 Jungshik Shin <jungshik.shin@gmail.com>
authorbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jul 2007 10:00:45 +0000 (10:00 +0000)
committerbdash <bdash@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Jul 2007 10:00:45 +0000 (10:00 +0000)
commitb9fd06f6df43ee68788d1c0df20d00348800a45a
tree3610d3a479e74113c01c631cd0be3018839b29db
parent3f72206d735c275346247b0dae25d00f0322d6b0
2007-07-06  Jungshik Shin  <jungshik.shin@gmail.com>

        Reviewed by Alexey.

        - Add UTF-32 encoding support
          http://bugs.webkit.org/show_bug.cgi?id=13415

        Test:
         - fast/encoding/utf-32-big-endian-bom.html
         - fast/encoding/utf-32-big-endian-nobom.xml
         - fast/encoding/utf-32-little-endian-bom.html
         - fast/encoding/utf-32-little-endian-nobom.xml

        * loader/TextResourceDecoder.cpp:
        (WebCore::TextResourceDecoder::checkForBOM):
        (WebCore::TextResourceDecoder::checkForHeadCharset):
        * platform/TextDecoder.cpp:
        (WebCore::TextDecoder::checkForBOM):
        * platform/TextDecoder.h:
        * platform/TextEncoding.cpp:
        (WebCore::UTF32BigEndianEncoding):
        (WebCore::UTF32LittleEndianEncoding):
        * platform/TextEncoding.h:

2007-07-06  Jungshik Shin <jungshik.shin@gmail.com>

        Reviewed by Alexey.

       - test for http://bugs.webkit.org/show_bug.cgi?id=13415

        * fast/encoding/utf-32-big-endian-bom-expected.txt: Added.
        * fast/encoding/utf-32-big-endian-bom.html: Added.
        * fast/encoding/utf-32-big-endian-nobom-expected.txt: Added.
        * fast/encoding/utf-32-big-endian-nobom.xml: Added.
        * fast/encoding/utf-32-little-endian-bom-expected.txt: Added.
        * fast/encoding/utf-32-little-endian-bom.html: Added.
        * fast/encoding/utf-32-little-endian-nobom-expected.txt: Added.
        * fast/encoding/utf-32-little-endian-nobom.xml: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/encoding/utf-32-big-endian-bom-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/utf-32-big-endian-bom.html [new file with mode: 0644]
LayoutTests/fast/encoding/utf-32-big-endian-nobom-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/utf-32-big-endian-nobom.xml [new file with mode: 0644]
LayoutTests/fast/encoding/utf-32-little-endian-bom-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/utf-32-little-endian-bom.html [new file with mode: 0644]
LayoutTests/fast/encoding/utf-32-little-endian-nobom-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/utf-32-little-endian-nobom.xml [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/TextResourceDecoder.cpp
WebCore/platform/TextDecoder.cpp
WebCore/platform/TextDecoder.h
WebCore/platform/TextEncoding.cpp
WebCore/platform/TextEncoding.h