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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_gtk.cc

Issue 8773025: GTK: More removal of raw GtkWidget->allocation access. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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
Index: chrome/browser/tab_contents/tab_contents_view_gtk.cc
diff --git a/chrome/browser/tab_contents/tab_contents_view_gtk.cc b/chrome/browser/tab_contents/tab_contents_view_gtk.cc
index 53e6cf3e7ae8d9f646af94731230ac3af4d55728..f796cd07c40394545b3922b0b8ed58c07d99bf50 100644
--- a/chrome/browser/tab_contents/tab_contents_view_gtk.cc
+++ b/chrome/browser/tab_contents/tab_contents_view_gtk.cc
@@ -162,7 +162,10 @@ void TabContentsViewGtk::GetContainerBounds(gfx::Rect* out) const {
GdkWindow* expanded_window = gtk_widget_get_window(expanded_.get());
if (expanded_window)
gdk_window_get_origin(expanded_window, &x, &y);
- out->SetRect(x + expanded_->allocation.x, y + expanded_->allocation.y,
+
+ GtkAllocation allocation;
+ gtk_widget_get_allocation(expanded_.get(), &allocation);
+ out->SetRect(x + allocation.x, y + allocation.y,
requested_size_.width(), requested_size_.height());
}
« no previous file with comments | « chrome/browser/automation/testing_automation_provider_gtk.cc ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698