[WK2] Refactoring : Fix indentation and braces in WebInspectorClient.h|cpp
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2013 04:39:52 +0000 (04:39 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Mar 2013 04:39:52 +0000 (04:39 +0000)
https://bugs.webkit.org/show_bug.cgi?id=109925

Patch by Seokju Kwon <seokju.kwon@gmail.com> on 2013-02-28
Reviewed by Benjamin Poulain.

The contents of an outermost namespace block should not be indented.
And One-line control clauses should not use braces.

* WebProcess/WebCoreSupport/WebInspectorClient.cpp:
(WebKit::WebInspectorClient::closeInspectorFrontend):
* WebProcess/WebCoreSupport/WebInspectorClient.h:
(WebCore):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@144411 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.cpp
Source/WebKit2/WebProcess/WebCoreSupport/WebInspectorClient.h

index 98dd54c..63c3c30 100644 (file)
@@ -1,3 +1,18 @@
+2013-02-28  Seokju Kwon  <seokju.kwon@gmail.com>
+
+        [WK2] Refactoring : Fix indentation and braces in WebInspectorClient.h|cpp
+        https://bugs.webkit.org/show_bug.cgi?id=109925
+
+        Reviewed by Benjamin Poulain.
+
+        The contents of an outermost namespace block should not be indented.
+        And One-line control clauses should not use braces.
+
+        * WebProcess/WebCoreSupport/WebInspectorClient.cpp:
+        (WebKit::WebInspectorClient::closeInspectorFrontend):
+        * WebProcess/WebCoreSupport/WebInspectorClient.h:
+        (WebCore):
+
 2013-02-28  Kiran Muppala  <cmuppala@apple.com>
 
         Add a pre-bootstrap message for NetworkProcess XPC service
index 69075fa..9978f9e 100644 (file)
@@ -52,9 +52,8 @@ WebCore::InspectorFrontendChannel* WebInspectorClient::openInspectorFrontend(Ins
 
 void WebInspectorClient::closeInspectorFrontend()
 {
-    if (m_page->inspector()) {
+    if (m_page->inspector())
         m_page->inspector()->didClose();
-    }
 }
 
 void WebInspectorClient::bringFrontendToFront()
index 850041a..2927a8a 100644 (file)
@@ -34,8 +34,8 @@
 #include <WebCore/InspectorFrontendChannel.h>
 
 namespace WebCore {
-    class GraphicsContext;
-    class IntRect;
+class GraphicsContext;
+class IntRect;
 }
 
 namespace WebKit {