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

Unified Diff: webkit/glue/webview_impl.cc

Issue 7314: Make zomm do full page zoom instead of just text zoom. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_impl.cc
===================================================================
--- webkit/glue/webview_impl.cc (revision 3346)
+++ webkit/glue/webview_impl.cc (working copy)
@@ -1162,7 +1162,7 @@
float zoom_factor = static_cast<float>(multiplier);
if (zoom_factor != frame->zoomFactor()) {
++text_zoom_level_;
- frame->setZoomFactor(zoom_factor, true);
+ frame->setZoomFactor(zoom_factor, false);
}
}
@@ -1174,13 +1174,13 @@
float zoom_factor = static_cast<float>(multiplier);
if (zoom_factor != frame->zoomFactor()) {
--text_zoom_level_;
- frame->setZoomFactor(zoom_factor, true);
+ frame->setZoomFactor(zoom_factor, false);
}
}
void WebViewImpl::MakeTextStandardSize() {
text_zoom_level_ = 0;
- main_frame()->frame()->setZoomFactor(1.0f, true);
+ main_frame()->frame()->setZoomFactor(1.0f, false);
}
void WebViewImpl::CopyImageAt(int x, int y) {
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698