Reviewed by Maciej.
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Aug 2007 01:04:14 +0000 (01:04 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Aug 2007 01:04:14 +0000 (01:04 +0000)
commit1f45b920ac6c08afb2ed5260a404a832c0dd5452
treef8e0dbf9c962b9c71daf3a977b1d6b35f53c99a5
parent8bb0a0e9a565bcff9a679ce3c7691f99669e26b0
    Reviewed by Maciej.

        <rdar://problem/5400029> iframes with an image src rarely load image

        Don't try to shrink standalone images in subframes. The resize event is not
        sent for subframes which screws up the shrink-to-fit logic.

        * loader/ImageDocument.cpp:
        (WebCore::ImageDocument::createDocumentStructure):
        (WebCore::ImageDocument::imageChanged):
        (WebCore::ImageDocument::shouldShrinkToFit):
        * loader/ImageDocument.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/loader/ImageDocument.cpp
WebCore/loader/ImageDocument.h