| Index: Source/core/html/ImageDocument.cpp
|
| diff --git a/Source/core/html/ImageDocument.cpp b/Source/core/html/ImageDocument.cpp
|
| index 31c91ee530a2d609b3dde8b0585631f073932fd5..d33588b6cff4ec65ced9c9b427daf65a2b52a35d 100644
|
| --- a/Source/core/html/ImageDocument.cpp
|
| +++ b/Source/core/html/ImageDocument.cpp
|
| @@ -362,7 +362,7 @@ ImageResource* ImageDocument::cachedImage()
|
|
|
| bool ImageDocument::shouldShrinkToFit() const
|
| {
|
| - return frame()->settings()->shrinksStandaloneImagesToFit() && frame()->page()->mainFrame() == frame();
|
| + return frame()->settings()->shrinksStandaloneImagesToFit() && frame()->isMainFrame();
|
| }
|
|
|
| void ImageDocument::dispose()
|
|
|