Index: third_party/WebKit/Source/core/html/ImageDocument.h |
diff --git a/third_party/WebKit/Source/core/html/ImageDocument.h b/third_party/WebKit/Source/core/html/ImageDocument.h |
index ed05b582602e98dfd033d1912a98bdd27aafa6dc..785c8168fbd5d74dd876ee05a81e092018daef88 100644 |
--- a/third_party/WebKit/Source/core/html/ImageDocument.h |
+++ b/third_party/WebKit/Source/core/html/ImageDocument.h |
@@ -47,6 +47,8 @@ class CORE_EXPORT ImageDocument final : public HTMLDocument { |
void windowSizeChanged(); |
void imageUpdated(); |
void imageClicked(int x, int y); |
+ void imageLoaded(); |
+ void updateImageStyle(); |
DECLARE_VIRTUAL_TRACE(); |
@@ -78,6 +80,9 @@ class CORE_EXPORT ImageDocument final : public HTMLDocument { |
// Whether the image should be shrunk or not |
bool m_shouldShrinkImage; |
+ // Whether the image has finished loading or not |
+ bool m_imageIsLoaded; |
+ |
enum ShrinkToFitMode { Viewport, Desktop }; |
ShrinkToFitMode m_shrinkToFitMode; |
}; |