| Index: chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
| diff --git a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
| index 054a9dccf5046e4f04968868ba3386e300e574c1..662a79f7c00389d437b52a00448b5f210fbf1438 100644
|
| --- a/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
| +++ b/chrome/browser/ui/gtk/download/download_shelf_gtk.cc
|
| @@ -383,11 +383,7 @@ bool DownloadShelfGtk::IsCursorInShelfZone(
|
| if (!realized)
|
| return false;
|
|
|
| - GtkAllocation allocation;
|
| - gtk_widget_get_allocation(shelf_.get(), &allocation);
|
| -
|
| - gfx::Rect bounds(ui::GetWidgetScreenPosition(shelf_.get()),
|
| - gfx::Size(allocation.width, allocation.height));
|
| + gfx::Rect bounds = ui::GetWidgetScreenBounds(shelf_.get());
|
|
|
| // Negative insets expand the rectangle. We only expand the top.
|
| bounds.Inset(gfx::Insets(-kShelfAuraSize, 0, 0, 0));
|
|
|