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

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

Issue 67044: Fix missing backing store in Linux. (Closed)
Patch Set: Delete unnecessary member variable. Created 11 years, 8 months 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/web_contents_view_gtk.cc
diff --git a/chrome/browser/tab_contents/web_contents_view_gtk.cc b/chrome/browser/tab_contents/web_contents_view_gtk.cc
index 809c6c9586b3575fd39906a40f2fcae810bab62a..43fdb80ae10909eb83e6918482e7f030479352f9 100644
--- a/chrome/browser/tab_contents/web_contents_view_gtk.cc
+++ b/chrome/browser/tab_contents/web_contents_view_gtk.cc
@@ -101,7 +101,6 @@ RenderWidgetHostView* WebContentsViewGtk::CreateViewForWidget(
g_signal_connect(view->native_view(), "button-press-event",
G_CALLBACK(OnMouseDown), this);
gfx::RemoveAllChildren(vbox_.get());
- gtk_box_pack_start(GTK_BOX(vbox_.get()), content_view_, TRUE, TRUE, 0);
return view;
}
@@ -184,6 +183,12 @@ void WebContentsViewGtk::RestoreFocus() {
NOTIMPLEMENTED() << " -- need to restore the focus position on this page.";
}
+void WebContentsViewGtk::SetChildSize(RenderWidgetHostView* rwh_view) {
+ // Packing the gtk widget in a container will cause a configure-event to be
+ // sent to the widget.
+ gtk_box_pack_start(GTK_BOX(vbox_.get()), content_view_, TRUE, TRUE, 0);
+}
+
void WebContentsViewGtk::UpdateDragCursor(bool is_drop_target) {
NOTIMPLEMENTED();
}
« no previous file with comments | « chrome/browser/tab_contents/web_contents_view_gtk.h ('k') | chrome/browser/tab_contents/web_contents_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698