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

Unified Diff: pdf/instance.cc

Issue 573523002: PDF Viewer - PageUp/Down don't move pdf by page size in FitToPage mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback (new fix) Created 6 years, 3 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 | « chrome/browser/resources/pdf/pdf.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/instance.cc
diff --git a/pdf/instance.cc b/pdf/instance.cc
index bb13fcc210eba34fdd4a03dde8fe5c9ff6b73ad0..ba7fca3b17aa7ad40f1b30b00b5d4cf15d8bf958 100644
--- a/pdf/instance.cc
+++ b/pdf/instance.cc
@@ -2426,6 +2426,10 @@ void Instance::UpdatePageIndicatorPosition(bool invalidate) {
}
void Instance::SetZoom(ZoomMode zoom_mode, double scale) {
+ // If same zoom level, don't do anything.
wjmaclean 2014/10/08 14:14:33 You might modify this comment to indicate that, in
raymes 2014/10/08 17:23:55 // If the zoom level doesn't change it means that
Nikhil 2014/10/09 06:36:19 Done.
+ if (scale == zoom_)
+ return;
+
double old_zoom = zoom_;
zoom_mode_ = zoom_mode;
« no previous file with comments | « chrome/browser/resources/pdf/pdf.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698