LayoutTests:

        Reviewed by Anders.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10202
          REGRESSION: Repro crash when loading an empty image document

        * fast/tokenizer/image-empty-crash-expected.txt: Added.
        * fast/tokenizer/image-empty-crash.html: Added.

WebCore:

        Reviewed by Anders.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=10202
          REGRESSION: Repro crash when loading an empty image document

        Test: fast/tokenizer/image-empty-crash.html

        * loader/ImageDocument.cpp:
        (WebCore::ImageTokenizer::stopParsing): Added null check for m_imageElement.
        (WebCore::ImageTokenizer::finish): Ditto.



git-svn-id: svn://svn.chromium.org/blink/trunk@15766 bbb929c8-8fbe-4397-9dbb-9b2b20218538
 void ImageTokenizer::stopParsing()
 {
     Tokenizer::stopParsing();
    if (m_imageElement)
        m_imageElement->cachedImage()->error();
 }

 void ImageTokenizer::stopParsing()
 {
     Tokenizer::stopParsing();
    m_imageElement->cachedImage()->error();
 }
