Cleanup: Remove extraneous "using namespace" and scope WebCore::LogThreading
authordbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Sep 2018 23:00:09 +0000 (23:00 +0000)
committerdbates@webkit.org <dbates@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Sep 2018 23:00:09 +0000 (23:00 +0000)
https://bugs.webkit.org/show_bug.cgi?id=189381

Reviewed by Simon Fraser.

* platform/ios/wak/WKGraphics.mm:
* platform/ios/wak/WebCoreThread.mm:
(WebThreadEnable):

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

Source/WebCore/ChangeLog
Source/WebCore/platform/ios/wak/WKGraphics.mm
Source/WebCore/platform/ios/wak/WebCoreThread.mm

index 90c7836..896dc66 100644 (file)
@@ -1,3 +1,14 @@
+2018-09-07  Daniel Bates  <dabates@apple.com>
+
+        Cleanup: Remove extraneous "using namespace" and scope WebCore::LogThreading
+        https://bugs.webkit.org/show_bug.cgi?id=189381
+
+        Reviewed by Simon Fraser.
+
+        * platform/ios/wak/WKGraphics.mm:
+        * platform/ios/wak/WebCoreThread.mm:
+        (WebThreadEnable):
+
 2018-09-07  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         Clean up FontAttributeChanges.cpp after r235748
index dfc6e0e..8e3b0d5 100644 (file)
@@ -31,8 +31,6 @@
 #import "WebCoreThreadInternal.h"
 #import <pal/spi/cg/CoreGraphicsSPI.h>
 
-using namespace WebCore;
-
 static inline void _FillRectsUsingOperation(CGContextRef context, const CGRect* rects, int count, CGCompositeOperation op)
 {
     int i;
index 1faf8d5..dafa3dc 100644 (file)
@@ -866,8 +866,10 @@ WebThreadContext* WebThreadCurrentContext(void)
 void WebThreadEnable(void)
 {
     RELEASE_ASSERT_WITH_MESSAGE(!WebCore::IOSApplication::isWebProcess(), "The WebProcess should never run a Web Thread");
-    if (WebCore::IOSApplication::isSpringBoard())
+    if (WebCore::IOSApplication::isSpringBoard()) {
+        using WebCore::LogThreading;
         RELEASE_LOG_FAULT(Threading, "SpringBoard enabled WebThread.");
+    }
 
     static std::once_flag flag;
     std::call_once(flag, StartWebThread);