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

Unified Diff: content/renderer/render_view_impl.cc

Issue 12328080: Plumb physical backing size from RWHV to renderer CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust for call renamed to GetViewportSizePix() Created 7 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 61554f7f7208b7e9ecac82b1c2962ae21640ff39..070baedffbb83663f5b6b49a47bf2bf2d1dd2656 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -5431,7 +5431,8 @@ void RenderViewImpl::OnDisableAutoResize(const gfx::Size& new_size) {
return;
webview()->disableAutoResizeMode();
- Resize(new_size, resizer_rect_, is_fullscreen_, NO_RESIZE_ACK);
+ Resize(new_size, physical_backing_size_, resizer_rect_, is_fullscreen_,
+ NO_RESIZE_ACK);
}
void RenderViewImpl::OnEnablePreferredSizeChangedMode() {
@@ -5726,6 +5727,7 @@ void RenderViewImpl::OnMoveOrResizeStarted() {
}
void RenderViewImpl::OnResize(const gfx::Size& new_size,
+ const gfx::Size& physical_backing_size,
const gfx::Rect& resizer_rect,
bool is_fullscreen) {
if (webview()) {
@@ -5737,7 +5739,8 @@ void RenderViewImpl::OnResize(const gfx::Size& new_size,
UpdateScrollState(webview()->mainFrame());
}
- RenderWidget::OnResize(new_size, resizer_rect, is_fullscreen);
+ RenderWidget::OnResize(new_size, physical_backing_size, resizer_rect,
+ is_fullscreen);
}
void RenderViewImpl::WillInitiatePaint() {
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698