Index: chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc |
diff --git a/chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc b/chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc |
index 138ba39109d46dd691cb370b7ed57d0558464d55..32a6ba5deec011bb43229e27eab1cebde845d7c4 100644 |
--- a/chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc |
+++ b/chrome/browser/ui/gtk/gtk_chrome_shrinkable_hbox.cc |
@@ -51,7 +51,8 @@ void ChildSizeAllocate(GtkWidget* child, gpointer userdata) { |
return; |
SizeAllocateData* data = reinterpret_cast<SizeAllocateData*>(userdata); |
- GtkAllocation child_allocation = child->allocation; |
+ GtkAllocation child_allocation; |
+ gtk_widget_get_allocation(child, &child_allocation); |
if (data->homogeneous) { |
// Make sure the child is not overlapped with others' boundary. |