LayoutTests:
authorweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 May 2007 17:14:10 +0000 (17:14 +0000)
committerweinig <weinig@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 May 2007 17:14:10 +0000 (17:14 +0000)
commite33ad88a3889100c18181692bd9242b55efd129d
tree01ae507362c92278139cc9a6308d48adde36d849
parentdb6d76dbf41f83757421f7445d3426cb52f527ed
LayoutTests:

        Reviewed by Darin.

        - pixel test for http://bugs.webkit.org/show_bug.cgi?id=13767
          REGRESSION: Multipart image documents are garbled

        * http/tests/multipart/invalid-image-data-standalone-expected.checksum: Added.
        * http/tests/multipart/invalid-image-data-standalone-expected.png: Added.
        * http/tests/multipart/invalid-image-data-standalone-expected.txt: Added.
        * http/tests/multipart/invalid-image-data-standalone.html: Added.
        * http/tests/multipart/resources/green-100x100.png: Added.

WebCore:

        Reviewed by Darin.

        - fix http://bugs.webkit.org/show_bug.cgi?id=13767
          REGRESSION: Multipart image documents are garbled

        Test: http/tests/multipart/invalid-image-data-standalone.html

        * loader/DocumentLoader.cpp:
        (WebCore::DocumentLoader::isLoadingMultipartContent): Added.
        * loader/DocumentLoader.h:
        * loader/ImageDocument.cpp:
        (WebCore::ImageTokenizer::finish): If the image is multipart, make a copy
        of the current part instead of using the resource data, which is going to be
        overwritten by the next part.
        * loader/MainResourceLoader.h:
        (WebCore::MainResourceLoader::isLoadingMultipartContent): Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/http/tests/multipart/invalid-image-data-standalone-expected.checksum [new file with mode: 0644]
LayoutTests/http/tests/multipart/invalid-image-data-standalone-expected.png [new file with mode: 0644]
LayoutTests/http/tests/multipart/invalid-image-data-standalone-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/multipart/invalid-image-data-standalone.html [new file with mode: 0644]
LayoutTests/http/tests/multipart/resources/green-100x100.png [new file with mode: 0644]
WebCore/ChangeLog
WebCore/loader/DocumentLoader.cpp
WebCore/loader/DocumentLoader.h
WebCore/loader/ImageDocument.cpp
WebCore/loader/MainResourceLoader.h