Title: [106838] trunk
Revision
106838
Author
[email protected]
Date
2012-02-06 13:01:28 -0800 (Mon, 06 Feb 2012)

Log Message

Source/WebKit2:  [GTK] Fix remaining errors in GTK+ WebKit2 API
https://bugs.webkit.org/show_bug.cgi?id=77890

Patch by Martin Robinson <[email protected]> on 2012-02-06
Reviewed by Gustavo Noronha Silva.

Fix some style issues in the GTK+ WebKit2 API section of the source code.

* UIProcess/API/gtk/WebKitPrivate.h:
* UIProcess/API/gtk/WebKitWebView.cpp:
* UIProcess/API/gtk/tests/TestMain.h:

Tools: [GTK] Fix remaining errors in GTK+ WebKit2 API
https://bugs.webkit.org/show_bug.cgi?id=77890

Patch by Martin Robinson <[email protected]> on 2012-02-06
Reviewed by Gustavo Noronha Silva.

Verify that WebKit2 GTK+ test files are not skipped during style checks.
Skip soup_server_new when checking for NULL versus 0 usage.

* Scripts/webkitpy/style/checker_unittest.py:
(CheckerDispatcherSkipTest.test_should_skip_with_warning):
* Scripts/webkitpy/style/checkers/cpp.py:
(check_for_null):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (106837 => 106838)


--- trunk/Source/WebKit2/ChangeLog	2012-02-06 20:56:38 UTC (rev 106837)
+++ trunk/Source/WebKit2/ChangeLog	2012-02-06 21:01:28 UTC (rev 106838)
@@ -1,3 +1,16 @@
+2012-02-06  Martin Robinson  <[email protected]>
+
+         [GTK] Fix remaining errors in GTK+ WebKit2 API
+        https://bugs.webkit.org/show_bug.cgi?id=77890
+
+        Reviewed by Gustavo Noronha Silva.
+
+        Fix some style issues in the GTK+ WebKit2 API section of the source code.
+
+        * UIProcess/API/gtk/WebKitPrivate.h:
+        * UIProcess/API/gtk/WebKitWebView.cpp:
+        * UIProcess/API/gtk/tests/TestMain.h:
+
 2012-02-06  Matthew Delaney  <[email protected]>
 
         toDataURL() uses stale data after putImageData()

Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h (106837 => 106838)


--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h	2012-02-06 20:56:38 UTC (rev 106837)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitPrivate.h	2012-02-06 21:01:28 UTC (rev 106838)
@@ -33,9 +33,9 @@
 #include <glib.h>
 #include <wtf/Assertions.h>
 
-#define WEBKIT_PARAM_READABLE (static_cast<GParamFlags>(G_PARAM_READABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB))
-#define WEBKIT_PARAM_WRITABLE (static_cast<GParamFlags>(G_PARAM_WRITABLE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB))
-#define WEBKIT_PARAM_READWRITE (static_cast<GParamFlags>(G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB))
+#define WEBKIT_PARAM_READABLE (static_cast<GParamFlags>(G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB))
+#define WEBKIT_PARAM_WRITABLE (static_cast<GParamFlags>(G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB))
+#define WEBKIT_PARAM_READWRITE (static_cast<GParamFlags>(G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB))
 
 #define COMPILE_ASSERT_MATCHING_ENUM(webkitName, webcoreName) \
         COMPILE_ASSERT(int(webkitName) == int(webcoreName), mismatchingEnums)

Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp (106837 => 106838)


--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp	2012-02-06 20:56:38 UTC (rev 106837)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp	2012-02-06 21:01:28 UTC (rev 106838)
@@ -27,13 +27,13 @@
 #include "WebKitLoaderClient.h"
 #include "WebKitMarshal.h"
 #include "WebKitPolicyClient.h"
+#include "WebKitPrivate.h"
 #include "WebKitSettingsPrivate.h"
 #include "WebKitUIClient.h"
 #include "WebKitWebContextPrivate.h"
 #include "WebKitWebViewBasePrivate.h"
 #include "WebKitWebViewPrivate.h"
 #include "WebKitWindowPropertiesPrivate.h"
-#include "WebKitPrivate.h"
 #include "WebPageProxy.h"
 #include <WebCore/DragIcon.h>
 #include <WebCore/GtkUtilities.h>

Modified: trunk/Source/WebKit2/UIProcess/API/gtk/tests/TestMain.h (106837 => 106838)


--- trunk/Source/WebKit2/UIProcess/API/gtk/tests/TestMain.h	2012-02-06 20:56:38 UTC (rev 106837)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/tests/TestMain.h	2012-02-06 21:01:28 UTC (rev 106838)
@@ -20,9 +20,9 @@
 #ifndef TestMain_h
 #define TestMain_h
 
-#include <glib-object.h>
 #include <_javascript_Core/GOwnPtr.h>
 #include <_javascript_Core/HashSet.h>
+#include <glib-object.h>
 
 #define MAKE_GLIB_TEST_FIXTURE(ClassName) \
     static void setUp(ClassName* fixture, gconstpointer data) \
@@ -39,8 +39,7 @@
         g_test_add(testPath.get(), ClassName, 0, ClassName::setUp, testFunc, ClassName::tearDown); \
     }
 
-class Test
-{
+class Test {
 public:
     MAKE_GLIB_TEST_FIXTURE(Test);
 

Modified: trunk/Tools/ChangeLog (106837 => 106838)


--- trunk/Tools/ChangeLog	2012-02-06 20:56:38 UTC (rev 106837)
+++ trunk/Tools/ChangeLog	2012-02-06 21:01:28 UTC (rev 106838)
@@ -1,3 +1,18 @@
+2012-02-06  Martin Robinson  <[email protected]>
+
+        [GTK] Fix remaining errors in GTK+ WebKit2 API
+        https://bugs.webkit.org/show_bug.cgi?id=77890
+
+        Reviewed by Gustavo Noronha Silva.
+
+        Verify that WebKit2 GTK+ test files are not skipped during style checks.
+        Skip soup_server_new when checking for NULL versus 0 usage.
+
+        * Scripts/webkitpy/style/checker_unittest.py:
+        (CheckerDispatcherSkipTest.test_should_skip_with_warning):
+        * Scripts/webkitpy/style/checkers/cpp.py:
+        (check_for_null):
+
 2012-02-06  Eric Seidel  <[email protected]>
 
         webkit-patch apply-from-bug should be able to apply non-reviewed patches

Modified: trunk/Tools/Scripts/webkitpy/style/checker_unittest.py (106837 => 106838)


--- trunk/Tools/Scripts/webkitpy/style/checker_unittest.py	2012-02-06 20:56:38 UTC (rev 106837)
+++ trunk/Tools/Scripts/webkitpy/style/checker_unittest.py	2012-02-06 21:01:28 UTC (rev 106838)
@@ -318,6 +318,8 @@
            "Source/WebKit2/UIProcess/API/gtk/HelperClass.h",
            "Source/WebKit2/UIProcess/API/gtk/WebKitWebView.cpp",
            "Source/WebKit2/UIProcess/API/gtk/WebKitWebViewPrivate.h",
+           "Source/WebKit2/UIProcess/API/gtk/tests/WebViewTest.cpp",
+           "Source/WebKit2/UIProcess/API/gtk/tests/WebViewTest.h",
             ]
 
         for path in paths_not_to_skip:

Modified: trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py (106837 => 106838)


--- trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py	2012-02-06 20:56:38 UTC (rev 106837)
+++ trunk/Tools/Scripts/webkitpy/style/checkers/cpp.py	2012-02-06 21:01:28 UTC (rev 106838)
@@ -2414,6 +2414,10 @@
     if search(r'\bgtk_widget_style_get\(\w+\b', line):
         return
 
+    # Don't warn about NULL usage in soup_server_new(). See Bug 77890.
+    if search(r'\bsoup_server_new\(\w+\b', line):
+        return
+
     if search(r'\bNULL\b', line):
         error(line_number, 'readability/null', 5, 'Use 0 instead of NULL.')
         return
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to