LayoutTests:
authorpewtermoose <pewtermoose@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Aug 2007 18:26:55 +0000 (18:26 +0000)
committerpewtermoose <pewtermoose@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Aug 2007 18:26:55 +0000 (18:26 +0000)
commit0c05b5f16251cd9e38bb95ebe3eef14cea92d074
treebf1da645c2cf52c7cdddc503d2ffdd5468df9ac7
parent0ac791b678232898e6fa4da9c34f8610755f0c79
LayoutTests:
2007-08-19  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Adam Roben.

        - test for http://bugs.webkit.org/show_bug.cgi?id=15008
          ASSERTION FAILED: !firstLineBox() == !lastLineBox() setting content on image

        * fast/images/text-content-crash-2-expected.txt: Added.
        * fast/images/text-content-crash-2.html: Added.

WebCore:
2007-08-19  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Adam Roben.

        - fix http://bugs.webkit.org/show_bug.cgi?id=15008
          ASSERTION FAILED: !firstLineBox() == !lastLineBox() setting content on image

        Test: fast/images/text-content-crash-2.html

        * html/HTMLImageLoader.cpp:
        (WebCore::HTMLImageLoader::setImage): Added a check that the renderer is an
        image.
        (WebCore::HTMLImageLoader::updateFromElement): Ditto.
        (WebCore::HTMLImageLoader::notifyFinished): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/images/text-content-crash-2-expected.txt [new file with mode: 0644]
LayoutTests/fast/images/text-content-crash-2.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLImageLoader.cpp