summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/gtk/bookmark_bar_gtk.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc
index a544a9b..d4949c7 100644
--- a/chrome/browser/gtk/bookmark_bar_gtk.cc
+++ b/chrome/browser/gtk/bookmark_bar_gtk.cc
@@ -1147,7 +1147,11 @@ gboolean BookmarkBarGtk::OnEventBoxExpose(GtkWidget* widget,
return FALSE;
gfx::CanvasPaint canvas(event, true);
NtpBackgroundUtil::PaintBackgroundDetachedMode(theme_provider, &canvas,
- gfx::Rect(widget->allocation), tab_contents_size.height());
+ // We can't just use gfx::Rect(widget->allocation) because the x,y for
+ // the allocation is relative to the parent widget rather than the
+ // GdkWindow.
+ gfx::Rect(0, 0, widget->allocation.width, widget->allocation.height),
+ tab_contents_size.height());
}
return FALSE; // Propagate expose to children.