Index: chrome/browser/tab_contents/tab_contents_view_gtk.cc |
diff --git a/chrome/browser/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/tab_contents/tab_contents_view_gtk.cc |
index 53e6cf3e7ae8d9f646af94731230ac3af4d55728..f796cd07c40394545b3922b0b8ed58c07d99bf50 100644 |
--- a/chrome/browser/tab_contents/tab_contents_view_gtk.cc |
+++ b/chrome/browser/tab_contents/tab_contents_view_gtk.cc |
@@ -162,7 +162,10 @@ void TabContentsViewGtk::GetContainerBounds(gfx::Rect* out) const { |
GdkWindow* expanded_window = gtk_widget_get_window(expanded_.get()); |
if (expanded_window) |
gdk_window_get_origin(expanded_window, &x, &y); |
- out->SetRect(x + expanded_->allocation.x, y + expanded_->allocation.y, |
+ |
+ GtkAllocation allocation; |
+ gtk_widget_get_allocation(expanded_.get(), &allocation); |
+ out->SetRect(x + allocation.x, y + allocation.y, |
requested_size_.width(), requested_size_.height()); |
} |