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

Unified Diff: third_party/WebKit/WebCore/platform/gtk/WidgetGtk.cpp

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 years, 10 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: 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)
« no previous file with comments | « third_party/WebKit/WebCore/platform/gtk/WheelEventGtk.cpp ('k') | third_party/WebKit/WebCore/platform/mac/WheelEventMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698