Index: chrome/browser/ui/gtk/gtk_chrome_link_button.cc |
diff --git a/chrome/browser/ui/gtk/gtk_chrome_link_button.cc b/chrome/browser/ui/gtk/gtk_chrome_link_button.cc |
index 12bd5bbcf5e04f9cd4021a6a29ed49c6dc076279..451126d6aad3fff269ac93ea7e95b1d150b1d1e5 100644 |
--- a/chrome/browser/ui/gtk/gtk_chrome_link_button.cc |
+++ b/chrome/browser/ui/gtk/gtk_chrome_link_button.cc |
@@ -137,11 +137,13 @@ static gboolean gtk_chrome_link_button_expose(GtkWidget* widget, |
// Draw the focus rectangle. |
if (gtk_widget_has_focus(widget)) { |
+ GtkAllocation allocation; |
+ gtk_widget_get_allocation(widget, &allocation); |
gtk_paint_focus(widget->style, widget->window, |
gtk_widget_get_state(widget), |
&event->area, widget, NULL, |
- widget->allocation.x, widget->allocation.y, |
- widget->allocation.width, widget->allocation.height); |
+ allocation.x, allocation.y, |
+ allocation.width, allocation.height); |
} |
return TRUE; |