Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4105)

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

Issue 8921022: GTK: Even more cleanup to access allocation through the accessor. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/menu_bar_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 72960662557047a3ab96d644fb7abc175db58885..18139c707a2150f2a55e3fd1cda7708d608eeab9 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -1389,7 +1389,9 @@ gboolean LocationBarViewGtk::ContentSettingImageViewGtk::OnExpose(
if (!(animation_.IsShowing() || animation_.IsClosing()))
return FALSE;
- const int height = sender->allocation.height;
+ GtkAllocation allocation;
+ gtk_widget_get_allocation(sender, &allocation);
+ const int height = allocation.height;
cairo_t* cr = gdk_cairo_create(GDK_DRAWABLE(sender->window));
gdk_cairo_rectangle(cr, &event->area);
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/menu_bar_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698