diff options
-rw-r--r-- | content/browser/renderer_host/render_widget_host_gtk.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/content/browser/renderer_host/render_widget_host_gtk.cc b/content/browser/renderer_host/render_widget_host_gtk.cc index c321a15..77877ca 100644 --- a/content/browser/renderer_host/render_widget_host_gtk.cc +++ b/content/browser/renderer_host/render_widget_host_gtk.cc @@ -82,11 +82,8 @@ void RenderWidgetHost::OnMsgGetRootWindowRect(gfx::NativeViewId window_id, GdkWindow* gdk_window = toplevel->window; if (!gdk_window) return; - gdk_window_get_frame_extents(gdk_window, &frame_extents); - int width = 0; - int height = 0; - gdk_drawable_get_size(gdk_window, &width, &height); + gdk_window_get_frame_extents(gdk_window, &frame_extents); *results = gfx::Rect(frame_extents.x, frame_extents.y, frame_extents.width, frame_extents.height); } |