summaryrefslogtreecommitdiffstats
path: root/content/browser/renderer_host/render_widget_host_impl.cc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 17:09:24 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-07 17:09:24 +0000
commitaf9f8e3bec47e0adf640d0c852cdf708d8d7ed27 (patch)
treeec7cbe16c85003109de873595508008bc306c034 /content/browser/renderer_host/render_widget_host_impl.cc
parent500456fa14e6e1aac51baaf636d86a29a5dde6ec (diff)
downloadchromium_src-af9f8e3bec47e0adf640d0c852cdf708d8d7ed27.zip
chromium_src-af9f8e3bec47e0adf640d0c852cdf708d8d7ed27.tar.gz
chromium_src-af9f8e3bec47e0adf640d0c852cdf708d8d7ed27.tar.bz2
mac: Remove GetViewCocoaBounds()
The decision is to keep almost all IPC messages in view units, and only use pixels in the BackingStore object instead. BUG=31960 TEST=none Review URL: https://chromiumcodereview.appspot.com/10541047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/renderer_host/render_widget_host_impl.cc')
-rw-r--r--content/browser/renderer_host/render_widget_host_impl.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 6a542e0..6a449ce 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -406,15 +406,7 @@ void RenderWidgetHostImpl::WasResized() {
return;
}
-#if !defined(OS_MACOSX)
gfx::Rect view_bounds = view_->GetViewBounds();
-#else
- // When UI scaling is enabled on OS X, allocate a smaller bitmap and
- // pixel-scale it up.
- // TODO(thakis): Use pixel size on mac and set UI scale in renderer.
- // http://crbug.com/31960
- gfx::Rect view_bounds(view_->GetViewCocoaBounds().size());
-#endif
gfx::Size new_size(view_bounds.size());
bool was_fullscreen = is_fullscreen_;