| Index: webkit/plugins/npapi/gtk_plugin_container_manager.cc
|
| diff --git a/webkit/plugins/npapi/gtk_plugin_container_manager.cc b/webkit/plugins/npapi/gtk_plugin_container_manager.cc
|
| index 1c84bfbac4d0fe52b1626f4d338d0154c4744668..0ab846bb58bff5a24b1e6c8cd1777d3d984a5561 100644
|
| --- a/webkit/plugins/npapi/gtk_plugin_container_manager.cc
|
| +++ b/webkit/plugins/npapi/gtk_plugin_container_manager.cc
|
| @@ -7,6 +7,7 @@
|
| #include <gtk/gtk.h>
|
|
|
| #include "base/logging.h"
|
| +#include "ui/base/gtk/gtk_compat.h"
|
| #include "ui/gfx/gtk_util.h"
|
| #include "webkit/plugins/npapi/gtk_plugin_container.h"
|
| #include "webkit/plugins/npapi/webplugin.h"
|
| @@ -80,7 +81,7 @@ void GtkPluginContainerManager::MovePluginContainer(
|
| // TODO(piman): if the widget hasn't been realized (e.g. the tab has been
|
| // torn off and the parent gtk widget has been detached from the hierarchy),
|
| // we lose the cutout information.
|
| - if (GTK_WIDGET_REALIZED(widget)) {
|
| + if (gtk_widget_get_realized(widget)) {
|
| GdkRectangle clip_rect = move.clip_rect.ToGdkRectangle();
|
| GdkRegion* clip_region = gdk_region_rectangle(&clip_rect);
|
| gfx::SubtractRectanglesFromRegion(clip_region, move.cutout_rects);
|
|
|