Changeset 70677 in webkit
- Timestamp:
- Oct 27, 2010 11:36:22 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r70675 r70677 1 2010-10-27 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Gustavo Noronha Silva. 4 5 [GTK] r69296 includes a cast from GdkWindow* to GtkWindow* 6 https://bugs.webkit.org/show_bug.cgi?id=48445 7 8 Pass the pageClient GtkWidget* to gtk_xtbin_new instead of the 9 GdkWindow*. The pageClient is used to get the proper visual for the 10 plugin container widget. 11 12 No new tests. This patch should prevent plugins/null-npp-getvalue-pointer.html 13 from crashing. 14 15 * plugins/gtk/PluginViewGtk.cpp: 16 (WebCore::PluginView::platformStart): Pass the widget instead of the window. 17 * plugins/gtk/gtk2xtbin.c: Accept the widget instead of the window. 18 (gtk_xtbin_new): 19 * plugins/gtk/gtk2xtbin.h: Update the declaration. 20 1 21 2010-10-27 Kwang Yul Seo <skyul@company100.net> 2 22 -
trunk/WebCore/plugins/gtk/PluginViewGtk.cpp
r69998 r70677 791 791 g_signal_connect(platformPluginWidget(), "plug-removed", G_CALLBACK(plugRemovedCallback), NULL); 792 792 } else 793 setPlatformWidget(gtk_xtbin_new( gtk_widget_get_window(pageClient), 0));793 setPlatformWidget(gtk_xtbin_new(pageClient, 0)); 794 794 #else 795 795 setPlatformWidget(gtk_socket_new()); -
trunk/WebCore/plugins/gtk/gtk2xtbin.c
r69301 r70677 323 323 324 324 GtkWidget* 325 gtk_xtbin_new (G dkWindow *parent_window, String *f)325 gtk_xtbin_new (GtkWidget *parent_widget, String *f) 326 326 { 327 327 GtkXtBin *xtbin; … … 330 330 GdkVisual* visual; 331 331 Colormap colormap; 332 GdkWindow* parent_window = gtk_widget_get_window(parent_widget); 332 333 333 334 assert(parent_window != NULL); … … 343 344 xtbin->parent_window = parent_window; 344 345 345 screen = gtk_widget_get_screen( GTK_WIDGET(parent_window));346 screen = gtk_widget_get_screen(parent_widget); 346 347 visual = gdk_screen_get_system_visual(screen); 347 348 colormap = XCreateColormap(GDK_DISPLAY_XDISPLAY(gdk_screen_get_display(screen)), -
trunk/WebCore/plugins/gtk/gtk2xtbin.h
r38232 r70677 102 102 103 103 GTKXTBIN_API(GType) gtk_xtbin_get_type (void); 104 GTKXTBIN_API(GtkWidget *) gtk_xtbin_new (G dkWindow *parent_window, String *f);104 GTKXTBIN_API(GtkWidget *) gtk_xtbin_new (GtkWidget *parent_widget, String *f); 105 105 GTKXTBIN_API(void) gtk_xtbin_set_position (GtkXtBin *xtbin, 106 106 gint x,
Note: See TracChangeset
for help on using the changeset viewer.