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

Unified Diff: content/renderer/render_view_impl.cc

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Minimizes render_view_impl changes and introduces a defaultDeviceScaleFactor argument Created 8 years, 10 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 5ab58f0afc2dd4b65490785e631bedca6af7581d..0a02ebe914e2418497bdb153a59b25ee2446b79f 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -4362,6 +4362,8 @@ void RenderViewImpl::OnMoveOrResizeStarted() {
void RenderViewImpl::OnResize(const gfx::Size& new_size,
const gfx::Rect& resizer_rect,
bool is_fullscreen) {
+ content::GetContentClient()->renderer()->RenderViewResized(
darin (slow to review) 2012/02/15 06:13:23 this is really a "before"-resize event. notice ho
Fady Samuel 2012/02/15 17:46:05 For the purposes of the layout fallback width yes,
+ this, new_size.width(), new_size.height());
if (webview()) {
webview()->hidePopups();
if (send_preferred_size_changes_) {

Powered by Google App Engine
This is Rietveld 408576698