Title: [254836] trunk
Revision
254836
Author
[email protected]
Date
2020-01-20 13:21:18 -0800 (Mon, 20 Jan 2020)

Log Message

Fix missing header guards and clean up empty files in WebCore, WebKitLegacy, WebKit, Tools
<https://webkit.org/b/206505>

Reviewed by Eric Carlson.

Source/WebCore:

* bindings/js/StructuredClone.h:
* bridge/npruntime_internal.h:
* editing/cocoa/AutofillElements.h:
* platform/graphics/FormatConverter.h:
* platform/graphics/ImageBufferData.h:
* platform/graphics/avfoundation/cf/AVFoundationCFSoftLinking.h:
* platform/ios/wak/WebCoreThreadSystemInterface.h:
* platform/network/mac/WebCoreURLResponse.h:
- Add #pragma once statement.

* platform/cocoa/SystemVersion.h:
* platform/mac/WebNSAttributedStringExtras.h:
- Add @class declarations as hint that this header is only used
  by Objective-C[++] source files.

* platform/mediastream/libwebrtc/VideoToolBoxDecoderFactory.cpp: Remove.
* platform/mediastream/libwebrtc/VideoToolBoxDecoderFactory.h: Remove.
* platform/mediastream/libwebrtc/VideoToolBoxEncoderFactory.cpp: Remove.
* platform/mediastream/libwebrtc/VideoToolBoxEncoderFactory.h: Remove.
- Remove unused, empty files.

* platform/network/HTTPStatusCodes.h: Remove.
- Remove unused header.

Source/WebCore/PAL:

* pal/ios/QuickLookSoftLink.h:
* pal/spi/ios/SQLite3SPI.h:
- Add #pragma once statement.

Source/WebKit:

* Platform/IPC/Attachment.h:
- Fix "# pragma" formatting. (It functioned, but WebKit style
  doesn't indent macros like this.)

* Platform/ios/AccessibilityIOS.h:
* Shared/ShareSheetCallbackID.h:
* Shared/mac/SecItemShim.h:
* UIProcess/API/C/WKPageRenderingProgressEventsInternal.h:
* UIProcess/API/Cocoa/WKNavigationData.h:
* UIProcess/API/Cocoa/WKPreferencesPrivate.h:
* UIProcess/API/Cocoa/WKWebArchive.h:
- Add #pragma once statement.

Source/WebKitLegacy:

* WebCoreSupport/WebViewGroup.h:
- Add #pragma once statement.

Source/WebKitLegacy/mac:

* Misc/WebKitStatisticsPrivate.h:
* Misc/WebLocalizableStrings.h: Modernize __OBJC__ and
 __cplusplus checks.
* Misc/WebTypesInternal.h:
* WebView/WebMediaPlaybackTargetPicker.h:
- Add #pragma once statement.

Source/WebKitLegacy/win:

* WebCoreSupport/WebChromeClient.h:
* WebCoreSupport/WebContextMenuClient.h:
* WebCoreSupport/WebDesktopNotificationsDelegate.h:
* WebCoreSupport/WebDragClient.h:
* WebDocumentLoader.h:
* WebKitStatisticsPrivate.h:
* WebPreferenceKeysPrivate.h:
- Add #pragma once statement.

Tools:

* DumpRenderTree/TestNetscapePlugIn/TestObject.h:
* TestWebKitAPI/_javascript_Test.h:
* TestWebKitAPI/Tests/WebCore/DFAHelpers.h:
- Add #pragma once statement.

Modified Paths

Removed Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (254835 => 254836)


--- trunk/Source/WebCore/ChangeLog	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/ChangeLog	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,3 +1,34 @@
+2020-01-20  David Kilzer  <[email protected]>
+
+        Fix missing header guards and clean up empty files in WebCore, WebKitLegacy, WebKit, Tools
+        <https://webkit.org/b/206505>
+
+        Reviewed by Eric Carlson.
+
+        * bindings/js/StructuredClone.h:
+        * bridge/npruntime_internal.h:
+        * editing/cocoa/AutofillElements.h:
+        * platform/graphics/FormatConverter.h:
+        * platform/graphics/ImageBufferData.h:
+        * platform/graphics/avfoundation/cf/AVFoundationCFSoftLinking.h:
+        * platform/ios/wak/WebCoreThreadSystemInterface.h:
+        * platform/network/mac/WebCoreURLResponse.h:
+        - Add #pragma once statement.
+
+        * platform/cocoa/SystemVersion.h:
+        * platform/mac/WebNSAttributedStringExtras.h:
+        - Add @class declarations as hint that this header is only used
+          by Objective-C[++] source files.
+
+        * platform/mediastream/libwebrtc/VideoToolBoxDecoderFactory.cpp: Remove.
+        * platform/mediastream/libwebrtc/VideoToolBoxDecoderFactory.h: Remove.
+        * platform/mediastream/libwebrtc/VideoToolBoxEncoderFactory.cpp: Remove.
+        * platform/mediastream/libwebrtc/VideoToolBoxEncoderFactory.h: Remove.
+        - Remove unused, empty files.
+
+        * platform/network/HTTPStatusCodes.h: Remove.
+        - Remove unused header.
+
 2020-01-20  Zalan Bujtas  <[email protected]>
 
         [LFC][IFC] Add support for the rare case of revert

Modified: trunk/Source/WebCore/PAL/ChangeLog (254835 => 254836)


--- trunk/Source/WebCore/PAL/ChangeLog	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/PAL/ChangeLog	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,3 +1,14 @@
+2020-01-20  David Kilzer  <[email protected]>
+
+        Fix missing header guards and clean up empty files in WebCore, WebKitLegacy, WebKit, Tools
+        <https://webkit.org/b/206505>
+
+        Reviewed by Eric Carlson.
+
+        * pal/ios/QuickLookSoftLink.h:
+        * pal/spi/ios/SQLite3SPI.h:
+        - Add #pragma once statement.
+
 2020-01-16  David Kilzer  <[email protected]>
 
         Attempt to fix internal iOS Debug builds

Modified: trunk/Source/WebCore/PAL/pal/ios/QuickLookSoftLink.h (254835 => 254836)


--- trunk/Source/WebCore/PAL/pal/ios/QuickLookSoftLink.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/PAL/pal/ios/QuickLookSoftLink.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015-2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2015-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -22,6 +22,8 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #if USE(QUICK_LOOK)
 
 #include <pal/spi/ios/QuickLookSPI.h>

Modified: trunk/Source/WebCore/PAL/pal/spi/ios/SQLite3SPI.h (254835 => 254836)


--- trunk/Source/WebCore/PAL/pal/spi/ios/SQLite3SPI.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/PAL/pal/spi/ios/SQLite3SPI.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #if USE(APPLE_INTERNAL_SDK)
 
 #include <sqlite3_private.h>

Modified: trunk/Source/WebCore/bindings/js/StructuredClone.h (254835 => 254836)


--- trunk/Source/WebCore/bindings/js/StructuredClone.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/bindings/js/StructuredClone.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016 Apple Inc. All Rights Reserved.
+ * Copyright (C) 2016-2020 Apple Inc. All Rights Reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -24,6 +24,8 @@
  *
  */
 
+#pragma once
+
 namespace JSC {
 class CallFrame;
 class JSGlobalObject;

Modified: trunk/Source/WebCore/bridge/npruntime_internal.h (254835 => 254836)


--- trunk/Source/WebCore/bridge/npruntime_internal.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/bridge/npruntime_internal.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,6 @@
 /*
  * Copyright (C) 2007-2008 Collabora Ltd.  All rights reserved.
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -25,6 +26,8 @@
  * include this file instead of the actual npapi.h or npruntime.h
  */
 
+#pragma once
+
 #include "npapi.h"
 #include "npfunctions.h"
 #include "npruntime.h"

Modified: trunk/Source/WebCore/editing/cocoa/AutofillElements.h (254835 => 254836)


--- trunk/Source/WebCore/editing/cocoa/AutofillElements.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/editing/cocoa/AutofillElements.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2017 Apple Inc. All rights reserved.
+ * Copyright (C) 2017-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include "HTMLInputElement.h"
 
 namespace WebCore {
@@ -39,4 +41,5 @@
     RefPtr<HTMLInputElement> m_username;
     RefPtr<HTMLInputElement> m_password;
 };
+
 } // namespace WebCore

Modified: trunk/Source/WebCore/platform/cocoa/SystemVersion.h (254835 => 254836)


--- trunk/Source/WebCore/platform/cocoa/SystemVersion.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/platform/cocoa/SystemVersion.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -22,6 +22,8 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+@class NSString;
+
 namespace WebCore {
 
 WEBCORE_EXPORT NSString *systemMarketingVersion();

Modified: trunk/Source/WebCore/platform/graphics/FormatConverter.h (254835 => 254836)


--- trunk/Source/WebCore/platform/graphics/FormatConverter.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/platform/graphics/FormatConverter.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2010-2020 Apple Inc. All rights reserved.
  * Copyright (C) 2010 Google Inc. All rights reserved.
  * Copyright (C) 2010 Mozilla Corporation. All rights reserved.
  *
@@ -25,6 +25,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#pragma once
+
 #if ENABLE(GRAPHICS_CONTEXT_GL)
 
 #include "GraphicsContextGLOpenGL.h"

Modified: trunk/Source/WebCore/platform/graphics/ImageBufferData.h (254835 => 254836)


--- trunk/Source/WebCore/platform/graphics/ImageBufferData.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/platform/graphics/ImageBufferData.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011 Apple Inc. All rights reserved.
+ * Copyright (C) 2011-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#pragma once
+
 #if USE(CG)
 #include "ImageBufferDataCG.h"
 #elif USE(DIRECT2D)

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/cf/AVFoundationCFSoftLinking.h (254835 => 254836)


--- trunk/Source/WebCore/platform/graphics/avfoundation/cf/AVFoundationCFSoftLinking.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/cf/AVFoundationCFSoftLinking.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011, 2012, 2014 Apple Inc. All rights reserved.
+ * Copyright (C) 2011-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#pragma once
+
 #include <wtf/SoftLinking.h>
 
 #if HAVE(AVFOUNDATION_LEGIBLE_OUTPUT_SUPPORT)

Modified: trunk/Source/WebCore/platform/ios/wak/WebCoreThreadSystemInterface.h (254835 => 254836)


--- trunk/Source/WebCore/platform/ios/wak/WebCoreThreadSystemInterface.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/platform/ios/wak/WebCoreThreadSystemInterface.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2010-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #if TARGET_OS_IPHONE
 
 #ifdef __cplusplus

Modified: trunk/Source/WebCore/platform/mac/WebNSAttributedStringExtras.h (254835 => 254836)


--- trunk/Source/WebCore/platform/mac/WebNSAttributedStringExtras.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/platform/mac/WebNSAttributedStringExtras.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005, 2011 Apple Inc.  All rights reserved.
+ * Copyright (C) 2005-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+@class NSAttributedString;
+
 namespace WebCore {
 
 WEBCORE_EXPORT NSAttributedString *attributedStringByStrippingAttachmentCharacters(NSAttributedString *);

Deleted: trunk/Source/WebCore/platform/mediastream/libwebrtc/VideoToolBoxDecoderFactory.cpp ( => )


Deleted: trunk/Source/WebCore/platform/mediastream/libwebrtc/VideoToolBoxDecoderFactory.h
===================================================================

Deleted: trunk/Source/WebCore/platform/mediastream/libwebrtc/VideoToolBoxEncoderFactory.cpp ( => )


Deleted: trunk/Source/WebCore/platform/mediastream/libwebrtc/VideoToolBoxEncoderFactory.h
===================================================================

Deleted: trunk/Source/WebCore/platform/network/HTTPStatusCodes.h (254835 => 254836)


--- trunk/Source/WebCore/platform/network/HTTPStatusCodes.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/platform/network/HTTPStatusCodes.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,27 +0,0 @@
-/*
-    Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)
-
-    This library is free software; you can redistribute it and/or
-    modify it under the terms of the GNU Library General Public
-    License as published by the Free Software Foundation; either
-    version 2 of the License, or (at your option) any later version.
-
-    This library is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-    Library General Public License for more details.
-
-    You should have received a copy of the GNU Library General Public License
-    along with this library; see the file COPYING.LIB.  If not, write to
-    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
-    Boston, MA 02110-1301, USA.
-*/
-
-namespace WebCore {
-
-enum HTTPStatusCodes {
-    HTTPNoContent = 204,
-    HTTPResetContent = 205
-};
-
-}

Modified: trunk/Source/WebCore/platform/network/mac/WebCoreURLResponse.h (254835 => 254836)


--- trunk/Source/WebCore/platform/network/mac/WebCoreURLResponse.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebCore/platform/network/mac/WebCoreURLResponse.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2008, 2009, 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2008-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -26,6 +26,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include <pal/spi/cf/CFNetworkSPI.h>
 
 namespace WebCore {

Modified: trunk/Source/WebKit/ChangeLog (254835 => 254836)


--- trunk/Source/WebKit/ChangeLog	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/ChangeLog	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,3 +1,23 @@
+2020-01-20  David Kilzer  <[email protected]>
+
+        Fix missing header guards and clean up empty files in WebCore, WebKitLegacy, WebKit, Tools
+        <https://webkit.org/b/206505>
+
+        Reviewed by Eric Carlson.
+
+        * Platform/IPC/Attachment.h:
+        - Fix "# pragma" formatting. (It functioned, but WebKit style
+          doesn't indent macros like this.)
+
+        * Platform/ios/AccessibilityIOS.h:
+        * Shared/ShareSheetCallbackID.h:
+        * Shared/mac/SecItemShim.h:
+        * UIProcess/API/C/WKPageRenderingProgressEventsInternal.h:
+        * UIProcess/API/Cocoa/WKNavigationData.h:
+        * UIProcess/API/Cocoa/WKPreferencesPrivate.h:
+        * UIProcess/API/Cocoa/WKWebArchive.h:
+        - Add #pragma once statement.
+
 2020-01-20  Adrian Perez de Castro  <[email protected]>
 
         Unreviewed. Update OptionsWPE.cmake and NEWS for the 2.27.4 release

Modified: trunk/Source/WebKit/Platform/IPC/Attachment.h (254835 => 254836)


--- trunk/Source/WebKit/Platform/IPC/Attachment.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/Platform/IPC/Attachment.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
+ * Copyright (C) 2010-2020 Apple Inc. All rights reserved.
  * Copyright (C) 2017 Sony Interactive Entertainment Inc.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -24,7 +24,7 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-# pragma once
+#pragma once
 
 #if OS(DARWIN) && !USE(UNIX_DOMAIN_SOCKETS)
 #include <mach/mach_init.h>

Modified: trunk/Source/WebKit/Platform/ios/AccessibilityIOS.h (254835 => 254836)


--- trunk/Source/WebKit/Platform/ios/AccessibilityIOS.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/Platform/ios/AccessibilityIOS.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Apple Inc. All rights reserved.
+ * Copyright (C) 2015-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 OBJC_CLASS NSData;
 OBJC_CLASS NSUUID;
 

Modified: trunk/Source/WebKit/Shared/ShareSheetCallbackID.h (254835 => 254836)


--- trunk/Source/WebKit/Shared/ShareSheetCallbackID.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/Shared/ShareSheetCallbackID.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2018 Apple Inc. All rights reserved.
+ * Copyright (C) 2018-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,6 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
 
 typedef uint64_t ShareSheetCallbackID;
-

Modified: trunk/Source/WebKit/Shared/mac/SecItemShim.h (254835 => 254836)


--- trunk/Source/WebKit/Shared/mac/SecItemShim.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/Shared/mac/SecItemShim.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2013-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #if ENABLE(SEC_ITEM_SHIM)
 
 namespace WebKit {

Modified: trunk/Source/WebKit/UIProcess/API/C/WKPageRenderingProgressEventsInternal.h (254835 => 254836)


--- trunk/Source/WebKit/UIProcess/API/C/WKPageRenderingProgressEventsInternal.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPageRenderingProgressEventsInternal.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Apple Inc. All rights reserved.
+ * Copyright (C) 2015-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include "WKPageRenderingProgressEvents.h"
 
 #include <WebCore/LayoutMilestone.h>

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationData.h (254835 => 254836)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationData.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKNavigationData.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2013-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include <WebKit/WKNavigationDataRef.h>
 
 #ifdef __OBJC__

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h (254835 => 254836)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKPreferencesPrivate.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,6 +1,5 @@
-
 /*
- * Copyright (C) 2014-2016 Apple Inc. All rights reserved.
+ * Copyright (C) 2014-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -24,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include <WebKit/WKPreferencesRefPrivate.h>
 
 #ifdef __OBJC__

Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebArchive.h (254835 => 254836)


--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebArchive.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebArchive.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2019 Apple Inc. All rights reserved.
+ * Copyright (C) 2019-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
 */
 
+#pragma once
+
 #if !TARGET_OS_IPHONE
 #include <WebKit/WKWebArchiveRef.h>
 #endif

Modified: trunk/Source/WebKitLegacy/ChangeLog (254835 => 254836)


--- trunk/Source/WebKitLegacy/ChangeLog	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/ChangeLog	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,3 +1,13 @@
+2020-01-20  David Kilzer  <[email protected]>
+
+        Fix missing header guards and clean up empty files in WebCore, WebKitLegacy, WebKit, Tools
+        <https://webkit.org/b/206505>
+
+        Reviewed by Eric Carlson.
+
+        * WebCoreSupport/WebViewGroup.h:
+        - Add #pragma once statement.
+
 2020-01-16  Per Arne Vollan  <[email protected]>
 
         [Win] Fix AppleWin build

Modified: trunk/Source/WebKitLegacy/WebCoreSupport/WebViewGroup.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/WebCoreSupport/WebViewGroup.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/WebCoreSupport/WebViewGroup.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2014 Apple Inc. All rights reserved.
+ * Copyright (C) 2014-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include <wtf/HashSet.h>
 #include <wtf/RefCounted.h>
 #include <wtf/text/WTFString.h>

Modified: trunk/Source/WebKitLegacy/mac/ChangeLog (254835 => 254836)


--- trunk/Source/WebKitLegacy/mac/ChangeLog	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/mac/ChangeLog	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,3 +1,17 @@
+2020-01-20  David Kilzer  <[email protected]>
+
+        Fix missing header guards and clean up empty files in WebCore, WebKitLegacy, WebKit, Tools
+        <https://webkit.org/b/206505>
+
+        Reviewed by Eric Carlson.
+
+        * Misc/WebKitStatisticsPrivate.h:
+        * Misc/WebLocalizableStrings.h: Modernize __OBJC__ and
+         __cplusplus checks.
+        * Misc/WebTypesInternal.h:
+        * WebView/WebMediaPlaybackTargetPicker.h:
+        - Add #pragma once statement.
+
 2020-01-17  Cathie Chen  <[email protected]>
 
         Add support for scroll behavior parsing

Modified: trunk/Source/WebKitLegacy/mac/Misc/WebKitStatisticsPrivate.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/mac/Misc/WebKitStatisticsPrivate.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/mac/Misc/WebKitStatisticsPrivate.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005 Apple Inc.  All rights reserved.
+ * Copyright (C) 2005-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -26,6 +26,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 extern int WebViewCount;
 extern int WebDataSourceCount;
 extern int WebFrameCount;

Modified: trunk/Source/WebKitLegacy/mac/Misc/WebLocalizableStrings.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/mac/Misc/WebLocalizableStrings.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/mac/Misc/WebLocalizableStrings.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005, 2006 Apple Inc.  All rights reserved.
+ * Copyright (C) 2005-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -26,11 +26,13 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#if __OBJC__
+#pragma once
+
+#ifdef __OBJC__
 @class NSBundle;
 typedef NSString *WebLocalizedStringType;
 #else
-#if __cplusplus
+#ifdef __cplusplus
 class NSBundle;
 #else
 typedef struct NSBundle NSBundle;

Modified: trunk/Source/WebKitLegacy/mac/Misc/WebTypesInternal.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/mac/Misc/WebTypesInternal.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/mac/Misc/WebTypesInternal.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2006-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -26,5 +26,4 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-
-
+#pragma once

Modified: trunk/Source/WebKitLegacy/mac/WebView/WebMediaPlaybackTargetPicker.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/mac/WebView/WebMediaPlaybackTargetPicker.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/mac/WebView/WebMediaPlaybackTargetPicker.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Apple Inc. All rights reserved.
+ * Copyright (C) 2015-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#pragma once
+
 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
 
 #include <WebCore/MediaPlaybackTarget.h>

Modified: trunk/Source/WebKitLegacy/win/ChangeLog (254835 => 254836)


--- trunk/Source/WebKitLegacy/win/ChangeLog	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/win/ChangeLog	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,3 +1,19 @@
+2020-01-20  David Kilzer  <[email protected]>
+
+        Fix missing header guards and clean up empty files in WebCore, WebKitLegacy, WebKit, Tools
+        <https://webkit.org/b/206505>
+
+        Reviewed by Eric Carlson.
+
+        * WebCoreSupport/WebChromeClient.h:
+        * WebCoreSupport/WebContextMenuClient.h:
+        * WebCoreSupport/WebDesktopNotificationsDelegate.h:
+        * WebCoreSupport/WebDragClient.h:
+        * WebDocumentLoader.h:
+        * WebKitStatisticsPrivate.h:
+        * WebPreferenceKeysPrivate.h:
+        - Add #pragma once statement.
+
 2020-01-17  Cathie Chen  <[email protected]>
 
         Add support for scroll behavior parsing

Modified: trunk/Source/WebKitLegacy/win/WebCoreSupport/WebChromeClient.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/win/WebCoreSupport/WebChromeClient.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/win/WebCoreSupport/WebChromeClient.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2017 Apple Inc. All rights reserved.
+ * Copyright (C) 2006-2020 Apple Inc. All rights reserved.
  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
  *
  * Redistribution and use in source and binary forms, with or without
@@ -24,6 +24,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#pragma once
+
 #include <WebCore/ChromeClient.h>
 #include <WebCore/COMPtr.h>
 #include <WebCore/GraphicsContext.h>

Modified: trunk/Source/WebKitLegacy/win/WebCoreSupport/WebContextMenuClient.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/win/WebCoreSupport/WebContextMenuClient.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/win/WebCoreSupport/WebContextMenuClient.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2006-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#pragma once
+
 #include <WebCore/ContextMenu.h>
 #include <WebCore/ContextMenuClient.h>
 #include <wtf/Forward.h>

Modified: trunk/Source/WebKitLegacy/win/WebCoreSupport/WebDesktopNotificationsDelegate.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/win/WebCoreSupport/WebDesktopNotificationsDelegate.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/win/WebCoreSupport/WebDesktopNotificationsDelegate.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,6 @@
 /*
  * Copyright (C) 2009 Google Inc. All rights reserved.
+ * Copyright (C) 2012-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -28,6 +29,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include <WebCore/COMPtr.h>
 #include <WebCore/Notification.h>
 #include <WebCore/NotificationClient.h>

Modified: trunk/Source/WebKitLegacy/win/WebCoreSupport/WebDragClient.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/win/WebCoreSupport/WebDragClient.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/win/WebCoreSupport/WebDragClient.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2007-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -26,6 +26,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include <WebCore/DragClient.h>
 
 class WebView;

Modified: trunk/Source/WebKitLegacy/win/WebDocumentLoader.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/win/WebDocumentLoader.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/win/WebDocumentLoader.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2007-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#pragma once
+
 #include "WebDataSource.h"
 #include <WebCore/DocumentLoader.h>
 

Modified: trunk/Source/WebKitLegacy/win/WebKitStatisticsPrivate.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/win/WebKitStatisticsPrivate.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/win/WebKitStatisticsPrivate.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 Apple, Inc.  All rights reserved.
+ * Copyright (C) 2007-2020 Apple, Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -26,6 +26,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 extern int WebViewCount;
 extern int WebDataSourceCount;
 extern int WebFrameCount;

Modified: trunk/Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h (254835 => 254836)


--- trunk/Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Source/WebKitLegacy/win/WebPreferenceKeysPrivate.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc.  All rights reserved.
+ * Copyright (C) 2005-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -26,6 +26,8 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 // These are private because callers should be using the cover methods. They are in
 // a Private (as opposed to Internal) header file because Safari uses some of them
 // for managed preferences.

Modified: trunk/Tools/ChangeLog (254835 => 254836)


--- trunk/Tools/ChangeLog	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Tools/ChangeLog	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,17 @@
 2020-01-20  David Kilzer  <[email protected]>
 
+        Fix missing header guards and clean up empty files in WebCore, WebKitLegacy, WebKit, Tools
+        <https://webkit.org/b/206505>
+
+        Reviewed by Eric Carlson.
+
+        * DumpRenderTree/TestNetscapePlugIn/TestObject.h:
+        * TestWebKitAPI/_javascript_Test.h:
+        * TestWebKitAPI/Tests/WebCore/DFAHelpers.h:
+        - Add #pragma once statement.
+
+2020-01-20  David Kilzer  <[email protected]>
+
         check-webkit-style: Improve header guard checks
         <https://webkit.org/b/206480>
 

Modified: trunk/Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h (254835 => 254836)


--- trunk/Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Tools/DumpRenderTree/TestNetscapePlugIn/TestObject.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2007-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
  */
 
+#pragma once
+
 #include <WebKit/npapi.h>
 #include <WebKit/npruntime.h>
 

Modified: trunk/Tools/TestWebKitAPI/_javascript_Test.h (254835 => 254836)


--- trunk/Tools/TestWebKitAPI/_javascript_Test.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Tools/TestWebKitAPI/_javascript_Test.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2011 Apple Inc. All rights reserved.
+ * Copyright (C) 2011-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #if PLATFORM(COCOA)
 OBJC_CLASS WKView;
 OBJC_CLASS WebView;

Modified: trunk/Tools/TestWebKitAPI/Tests/WebCore/DFAHelpers.h (254835 => 254836)


--- trunk/Tools/TestWebKitAPI/Tests/WebCore/DFAHelpers.h	2020-01-20 21:00:35 UTC (rev 254835)
+++ trunk/Tools/TestWebKitAPI/Tests/WebCore/DFAHelpers.h	2020-01-20 21:21:18 UTC (rev 254836)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Apple Inc. All rights reserved.
+ * Copyright (C) 2015-2020 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -23,6 +23,8 @@
  * THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#pragma once
+
 #include <WebCore/CombinedURLFilters.h>
 #include <WebCore/NFA.h>
 #include <WebCore/NFAToDFA.h>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to