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

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

Issue 262053005: Allow zoom/restore in a zoomed document. It is a regression from an earlier fix. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/ImageDocument.h
diff --git a/Source/core/html/ImageDocument.h b/Source/core/html/ImageDocument.h
index 896a46261da7f9affb5c064c054959087710a58b..c0f4def6f3c3a314346359b05f981a3e17532da7 100644
--- a/Source/core/html/ImageDocument.h
+++ b/Source/core/html/ImageDocument.h
@@ -43,7 +43,7 @@ public:
ImageResource* cachedImage();
HTMLImageElement* imageElement() const { return m_imageElement.get(); }
- void windowSizeChanged();
+ void windowSizeChanged(bool resizeZoomedDocument);
tony 2014/05/05 16:38:13 Can you make this an enum with 2 values instead of
void imageUpdated();
void imageClicked(int x, int y);
@@ -54,8 +54,8 @@ private:
virtual void dispose() OVERRIDE;
void createDocumentStructure();
- void resizeImageToFit();
- void restoreImageSize();
+ void resizeImageToFit(bool resizeZoomedDocument);
+ void restoreImageSize(bool restoreZoomedDocument);
bool imageFitsInWindow() const;
bool shouldShrinkToFit() const;
float scale() const;
« no previous file with comments | « no previous file | Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698