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

Unified Diff: chrome/browser/ui/web_contents_sizer.cc

Issue 2259533003: Use bounds instead of size for prerender requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments nit Created 4 years, 4 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/ui/web_contents_sizer.h ('k') | chrome/browser/ui/web_contents_sizer.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/web_contents_sizer.cc
diff --git a/chrome/browser/ui/web_contents_sizer.cc b/chrome/browser/ui/web_contents_sizer.cc
index da9590d984d8dbb0b926a40cf41b67f4527b514f..b797138124eef933a2c61e5646b30a9b43723f49 100644
--- a/chrome/browser/ui/web_contents_sizer.cc
+++ b/chrome/browser/ui/web_contents_sizer.cc
@@ -14,13 +14,13 @@
#endif
void ResizeWebContents(content::WebContents* web_contents,
- const gfx::Size& new_size) {
+ const gfx::Rect& new_bounds) {
#if defined(USE_AURA)
aura::Window* window = web_contents->GetNativeView();
- window->SetBounds(gfx::Rect(window->bounds().origin(), new_size));
+ window->SetBounds(gfx::Rect(window->bounds().origin(), new_bounds.size()));
#elif defined(OS_ANDROID)
content::RenderWidgetHostView* view = web_contents->GetRenderWidgetHostView();
if (view)
- view->SetSize(new_size);
+ view->SetSize(new_bounds.size());
#endif
}
« no previous file with comments | « chrome/browser/ui/web_contents_sizer.h ('k') | chrome/browser/ui/web_contents_sizer.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698