Bug 14609 - gdk painting changes
Summary: gdk painting changes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 523.x (Safari 3)
Hardware: PC OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-13 10:54 PDT by Holger Freyther
Modified: 2007-07-16 13:41 PDT (History)
0 users

See Also:


Attachments
Painting Chnages (18.07 KB, patch)
2007-07-13 10:58 PDT, Holger Freyther
zimmermann: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.