Index: chrome/browser/automation/testing_automation_provider_gtk.cc |
diff --git a/chrome/browser/automation/testing_automation_provider_gtk.cc b/chrome/browser/automation/testing_automation_provider_gtk.cc |
index f00025f958d00c35f2535c5997eb02a0e2313556..6263a968222b053f220218367105ff65200d6fe4 100644 |
--- a/chrome/browser/automation/testing_automation_provider_gtk.cc |
+++ b/chrome/browser/automation/testing_automation_provider_gtk.cc |
@@ -43,7 +43,10 @@ void TestingAutomationProvider::WindowGetViewBounds(int handle, |
if (!widget) |
return; |
*success = true; |
- *bounds = gfx::Rect(widget->allocation.width, widget->allocation.height); |
+ |
+ GtkAllocation allocation; |
+ gtk_widget_get_allocation(widget, &allocation); |
+ *bounds = gfx::Rect(allocation.width, allocation.height); |
gint x, y; |
if (screen_coordinates) { |
gfx::Point point = gtk_util::GetWidgetScreenPosition(widget); |