Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: third_party/WebKit/Source/core/html/ImageDocument.h

Issue 2445413003: [Blink] Display images on a dark background (Closed)
Patch Set: Rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..338961d94e9171dba11b67cf1ce1500876265deb 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,15 @@ 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;
+
+ // Whether the checkerboard size has been initialized
+ bool m_checkerSizeInitialized;
+
+ // Width of the div parent of the image
+ int m_divWidth;
+
enum ShrinkToFitMode { Viewport, Desktop };
ShrinkToFitMode m_shrinkToFitMode;
};

Powered by Google App Engine
This is Rietveld 408576698