Bug 14609

Summary: gdk painting changes
Product: WebKit Reporter: Holger Freyther <zecke>
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: PC   
OS: OS X 10.4   
Attachments:
Description Flags
Painting Chnages zimmermann: review+

Description Holger Freyther 2007-07-13 10:54:27 PDT
Various gdk painting changes spanning across multiple files including fixes for PlatformScrollbar, not using a GdkPixmap for drawing the themes because GraphicsContext will store the used native GdkWindow to draw on.
Comment 1 Holger Freyther 2007-07-13 10:58:09 PDT
Created attachment 15502 [details]
Painting Chnages

Fix drawing of PlatformScrollbar, fix ownership of it, do not tripple buffer RenderThemeGdk, this should fix drawing rounded buttons as well. Lazily get the gdkDrawable as it might not be created at the time Widget::setGtkWidget is getting called. The drawable will exist when doing painting.
Comment 2 Nikolas Zimmermann 2007-07-15 15:50:19 PDT
Comment on attachment 15502 [details]
Painting Chnages

 Hi Holger,

even though I'm not a gdk/gtk expert this looks like a nice patch.

I'm not sure wheter you are adhering to the style guide in the gdk port, if yes, tiny remark:

+struct FrameGdkExposeData{
+    GtkContainer *container;
+    GdkEventExpose *expose;
+};

missing space after {, stars should be moved.

+
+static void
+frame_gdk_expose_child(GtkWidget *widget, gpointer _data)
+{

Don't use two lines here.
Other than style remarks, all fine, r=me.

Greetings,
Niko
Comment 3 Nikolas Zimmermann 2007-07-15 15:50:30 PDT
Comment on attachment 15502 [details]
Painting Chnages

 Hi Holger,

even though I'm not a gdk/gtk expert this looks like a nice patch.

I'm not sure wheter you are adhering to the style guide in the gdk port, if yes, tiny remark:

+struct FrameGdkExposeData{
+    GtkContainer *container;
+    GdkEventExpose *expose;
+};

missing space after {, stars should be moved.

+
+static void
+frame_gdk_expose_child(GtkWidget *widget, gpointer _data)
+{

Don't use two lines here.
Other than style remarks, all fine, r=me.

Greetings,
Niko
Comment 4 Holger Freyther 2007-07-15 22:57:03 PDT
We do adhere the CodingStyle (well besides webkitgtklayout.c as in another patch). So please let me fix that before landing this patch.
Comment 5 Holger Freyther 2007-07-16 13:41:48 PDT
Landed in r24322.