Title: [165731] trunk/Source/WebCore
Revision
165731
Author
[email protected]
Date
2014-03-17 06:45:06 -0700 (Mon, 17 Mar 2014)

Log Message

[GTK] Cleanup WebKitDOMObject
https://bugs.webkit.org/show_bug.cgi?id=130246

Reviewed by Martin Robinson.

Remove unneeded getter and fix coding style.

* bindings/gobject/WebKitDOMObject.cpp:
(webkitDOMObjectSetProperty):
(webkit_dom_object_class_init):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (165730 => 165731)


--- trunk/Source/WebCore/ChangeLog	2014-03-17 12:40:43 UTC (rev 165730)
+++ trunk/Source/WebCore/ChangeLog	2014-03-17 13:45:06 UTC (rev 165731)
@@ -1,3 +1,16 @@
+2014-03-17  Carlos Garcia Campos  <[email protected]>
+
+        [GTK] Cleanup WebKitDOMObject
+        https://bugs.webkit.org/show_bug.cgi?id=130246
+
+        Reviewed by Martin Robinson.
+
+        Remove unneeded getter and fix coding style.
+
+        * bindings/gobject/WebKitDOMObject.cpp:
+        (webkitDOMObjectSetProperty):
+        (webkit_dom_object_class_init):
+
 2014-03-17  Darin Adler  <[email protected]>
 
         Stop using deprecatedCharacters in HTMLTreeBuilder

Modified: trunk/Source/WebCore/bindings/gobject/WebKitDOMObject.cpp (165730 => 165731)


--- trunk/Source/WebCore/bindings/gobject/WebKitDOMObject.cpp	2014-03-17 12:40:43 UTC (rev 165730)
+++ trunk/Source/WebCore/bindings/gobject/WebKitDOMObject.cpp	2014-03-17 13:45:06 UTC (rev 165731)
@@ -19,19 +19,14 @@
 {
 }
 
-static void webkit_dom_object_get_property(GObject* object, guint propertyId, GValue*, GParamSpec* paramSpec)
+static void webkitDOMObjectSetProperty(GObject* object, guint propertyId, const GValue* value, GParamSpec* pspec)
 {
-    G_OBJECT_WARN_INVALID_PROPERTY_ID(object, propertyId, paramSpec);
-}
-
-static void webkit_dom_object_set_property(GObject* object, guint prop_id, const GValue* value, GParamSpec* pspec)
-{
-    switch (prop_id) {
+    switch (propertyId) {
     case PROP_CORE_OBJECT:
         WEBKIT_DOM_OBJECT(object)->coreObject = g_value_get_pointer(value);
         break;
     default:
-        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, prop_id, pspec);
+        G_OBJECT_WARN_INVALID_PROPERTY_ID(object, propertyId, pspec);
         break;
     }
 }
@@ -39,14 +34,14 @@
 static void webkit_dom_object_class_init(WebKitDOMObjectClass* klass)
 {
     GObjectClass* gobjectClass = G_OBJECT_CLASS(klass);
-    gobjectClass->set_property = webkit_dom_object_set_property;
-    gobjectClass->get_property = webkit_dom_object_get_property;
+    gobjectClass->set_property = webkitDOMObjectSetProperty;
 
-    g_object_class_install_property(gobjectClass,
-                                    PROP_CORE_OBJECT,
-                                    g_param_spec_pointer("core-object",
-                                                         "Core Object",
-                                                         "The WebCore object the WebKitDOMObject wraps",
-                                                         static_cast<GParamFlags>(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY)));
+    g_object_class_install_property(
+        gobjectClass,
+        PROP_CORE_OBJECT,
+        g_param_spec_pointer(
+            "core-object",
+            "Core Object",
+            "The WebCore object the WebKitDOMObject wraps",
+            static_cast<GParamFlags>(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)));
 }
-
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to