| Index: third_party/WebKit/WebCore/platform/gtk/WidgetGtk.cpp
|
| ===================================================================
|
| --- third_party/WebKit/WebCore/platform/gtk/WidgetGtk.cpp (revision 11154)
|
| +++ third_party/WebKit/WebCore/platform/gtk/WidgetGtk.cpp (working copy)
|
| @@ -95,41 +95,8 @@
|
| gtk_widget_hide(platformWidget());
|
| }
|
|
|
| -/*
|
| - * Strategy to painting a Widget:
|
| - * 1.) do not paint if there is no GtkWidget set
|
| - * 2.) We assume that GTK_NO_WINDOW is set and that frameRectsChanged positioned
|
| - * the widget correctly. ATM we do not honor the GraphicsContext translation.
|
| - */
|
| -void Widget::paint(GraphicsContext* context, const IntRect&)
|
| +void Widget::paint(GraphicsContext* context, const IntRect& rect)
|
| {
|
| - if (!platformWidget())
|
| - return;
|
| -
|
| - if (!context->gdkExposeEvent())
|
| - return;
|
| -
|
| - GtkWidget* widget = platformWidget();
|
| - ASSERT(GTK_WIDGET_NO_WINDOW(widget));
|
| -
|
| - GdkEvent* event = gdk_event_new(GDK_EXPOSE);
|
| - event->expose = *context->gdkExposeEvent();
|
| - event->expose.region = gtk_widget_region_intersect(widget, event->expose.region);
|
| -
|
| - /*
|
| - * This will be unref'ed by gdk_event_free.
|
| - */
|
| - g_object_ref(event->expose.window);
|
| -
|
| - /*
|
| - * If we are going to paint do the translation and GtkAllocation manipulation.
|
| - */
|
| - if (!gdk_region_empty(event->expose.region)) {
|
| - gdk_region_get_clipbox(event->expose.region, &event->expose.area);
|
| - gtk_widget_send_expose(widget, event);
|
| - }
|
| -
|
| - gdk_event_free(event);
|
| }
|
|
|
| void Widget::setIsSelected(bool)
|
|
|