Log Message
[GTK] Use bit field for bool members of WebKitWindowPropertiesPrivate https://bugs.webkit.org/show_bug.cgi?id=74713
Reviewed by Gustavo Noronha Silva. Most of the members are bools, so it reduces the memory footprint. * UIProcess/API/gtk/WebKitWindowProperties.cpp:
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (103067 => 103068)
--- trunk/Source/WebKit2/ChangeLog 2011-12-16 14:41:41 UTC (rev 103067)
+++ trunk/Source/WebKit2/ChangeLog 2011-12-16 14:46:20 UTC (rev 103068)
@@ -1,5 +1,16 @@
2011-12-16 Carlos Garcia Campos <[email protected]>
+ [GTK] Use bit field for bool members of WebKitWindowPropertiesPrivate
+ https://bugs.webkit.org/show_bug.cgi?id=74713
+
+ Reviewed by Gustavo Noronha Silva.
+
+ Most of the members are bools, so it reduces the memory footprint.
+
+ * UIProcess/API/gtk/WebKitWindowProperties.cpp:
+
+2011-12-16 Carlos Garcia Campos <[email protected]>
+
[GTK] Window frame should be 0x0 when the toplevel window is not visible
https://bugs.webkit.org/show_bug.cgi?id=74709
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWindowProperties.cpp (103067 => 103068)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWindowProperties.cpp 2011-12-16 14:41:41 UTC (rev 103067)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWindowProperties.cpp 2011-12-16 14:46:20 UTC (rev 103068)
@@ -112,14 +112,14 @@
struct _WebKitWindowPropertiesPrivate {
GdkRectangle geometry;
- bool toolbarVisible;
- bool statusbarVisible;
- bool scrollbarsVisible;
- bool menubarVisible;
- bool locationbarVisible;
+ bool toolbarVisible : 1;
+ bool statusbarVisible : 1;
+ bool scrollbarsVisible : 1;
+ bool menubarVisible : 1;
+ bool locationbarVisible : 1;
- bool resizable;
- bool fullscreen;
+ bool resizable : 1;
+ bool fullscreen : 1;
};
static void webkitWindowPropertiesFinalize(GObject* object)
_______________________________________________ webkit-changes mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes
