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

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

Issue 2646663002: [Blink] Don't center images in Android WebViews (Closed)
Patch Set: Update test Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c391bdc8a1588805e078d17dcf770a56be42d64e..8a1575ecffcfa9b5d09473e39c86bfdafd72e012 100644
--- a/third_party/WebKit/Source/core/html/ImageDocument.h
+++ b/third_party/WebKit/Source/core/html/ImageDocument.h
@@ -53,6 +53,7 @@ class CORE_EXPORT ImageDocument final : public HTMLDocument {
void imageClicked(int x, int y);
void imageLoaded();
void updateImageStyle();
+ bool shouldShrinkToFit() const;
DECLARE_VIRTUAL_TRACE();
@@ -70,7 +71,6 @@ class CORE_EXPORT ImageDocument final : public HTMLDocument {
void resizeImageToFit();
void restoreImageSize();
bool imageFitsInWindow() const;
- bool shouldShrinkToFit() const;
// Calculates the image size multiplier that's needed to fit the image to
// the window, taking into account page zoom and device scale.
float scale() const;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698