Title: [236118] releases/WebKitGTK/webkit-2.22/Source
Revision
236118
Author
[email protected]
Date
2018-09-18 06:31:38 -0700 (Tue, 18 Sep 2018)

Log Message

Merge r235521 - Bundle unified sources more tightly in projects with deep directory structures
https://bugs.webkit.org/show_bug.cgi?id=189009

Reviewed by Simon Fraser.

* Scripts/generate-unified-source-bundles.rb:
It turns out our plan to switch unified source bundle every time the directory
changes is not a good fit for projects like WebKit2 with many small directories.
It leaves many unified source bundles with only a single source file,
achieving only ~40% density.

Instead, switch unified source bundles every time the top-level directory changes.
This still achieves the goal of *usually* only rebuilding the one top-level
directory you touched, and increases source bundle density wildly, to ~95%.

Fix a variety of unification errors due to reshuffling the bundles.

* Modules/mediastream/RTCController.cpp:
* SourcesCocoa.txt:
* WebCore.xcodeproj/project.pbxproj:
* crypto/algorithms/CryptoAlgorithmECDSA.cpp:
(WebCore::CryptoAlgorithmECDSA::importKey):
* dom/Document.h:
* html/parser/HTMLTreeBuilder.cpp:
* loader/appcache/ApplicationCacheResourceLoader.h:
* page/AlternativeTextClient.h:
* platform/Pasteboard.h:
* platform/graphics/DisplayRefreshMonitor.cpp:
* platform/graphics/FontFamilySpecificationNull.cpp:
* platform/graphics/cocoa/WebGLLayer.mm:
(-[WebGLLayer initWithGraphicsContext3D:]):
(-[WebGLLayer copyImageSnapshotWithColorSpace:]):
(-[WebGLLayer display]):
(-[WebGLLayer allocateIOSurfaceBackingStoreWithSize:usingAlpha:]):
* platform/graphics/cocoa/WebGPULayer.mm:
(-[WebGPULayer initWithGPUDevice:]):
* platform/graphics/metal/GPUCommandQueueMetal.mm:
* platform/mac/PasteboardMac.mm:
* platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp:
* platform/network/ResourceRequestBase.cpp:
* rendering/updating/RenderTreeBuilderBlockFlow.cpp:
* rendering/updating/RenderTreeBuilderInline.cpp:

* Shared/APIWebArchive.mm:
* Shared/APIWebArchiveResource.mm:
* Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
* Shared/Plugins/Netscape/mac/PluginInformationMac.mm:
* SourcesCocoa.txt:
* SourcesGTK.txt:
* UIProcess/API/APIAutomationSessionClient.h:
(API::AutomationSessionClient::sessionIdentifier const):
(API::AutomationSessionClient::messageOfCurrentJavaScriptDialogOnPage):
(API::AutomationSessionClient::setUserInputForCurrentJavaScriptPromptOnPage):
* UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm:
(-[WKCustomProtocolLoader initWithLegacyCustomProtocolManagerProxy:customProtocolID:request:]):
(-[WKCustomProtocolLoader connection:didFailWithError:]):
(-[WKCustomProtocolLoader connection:didReceiveResponse:]):
* UIProcess/Plugins/PluginProcessProxy.cpp:
(WebKit::generatePluginProcessCallbackID):
(WebKit::PluginProcessProxy::fetchWebsiteData):
(WebKit::PluginProcessProxy::deleteWebsiteData):
(WebKit::PluginProcessProxy::deleteWebsiteDataForHostNames):
(WebKit::generateCallbackID): Deleted.
* UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm:
(-[WKScrollingNodeScrollViewDelegate scrollViewWillEndDragging:withVelocity:targetContentOffset:]):
* UIProcess/Storage/StorageProcessProxy.cpp:
(WebKit::generateStorageProcessCallbackID):
(WebKit::StorageProcessProxy::fetchWebsiteData):
(WebKit::StorageProcessProxy::deleteWebsiteData):
(WebKit::StorageProcessProxy::deleteWebsiteDataForOrigins):
(WebKit::generateCallbackID): Deleted.
* WebKit.xcodeproj/project.pbxproj:
* WebProcess/Plugins/PDF/PDFPlugin.mm:
(-[WKPDFPluginAccessibilityObject accessibilityPerformAction:]):
(-[WKPDFPluginAccessibilityObject accessibilityFocusedUIElement]):
(-[WKPDFPluginAccessibilityObject accessibilityAssociatedControlForAnnotation:]):
(-[WKPDFPluginAccessibilityObject accessibilityHitTest:]):
(-[WKPDFLayerControllerDelegate updateScrollPosition:]):
(WebKit::PDFPlugin::updateCursor):
(WebKit::coreCursor):
(appendValuesInPDFNameSubtreeToVector): Deleted.
(getAllValuesInPDFNameTree): Deleted.
(getAllScriptsInPDFDocument): Deleted.

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.22/Source/WTF/ChangeLog (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WTF/ChangeLog	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WTF/ChangeLog	2018-09-18 13:31:38 UTC (rev 236118)
@@ -1,3 +1,22 @@
+2018-08-30  Tim Horton  <[email protected]>
+
+        Bundle unified sources more tightly in projects with deep directory structures
+        https://bugs.webkit.org/show_bug.cgi?id=189009
+
+        Reviewed by Simon Fraser.
+
+        * Scripts/generate-unified-source-bundles.rb:
+        It turns out our plan to switch unified source bundle every time the directory
+        changes is not a good fit for projects like WebKit2 with many small directories.
+        It leaves many unified source bundles with only a single source file,
+        achieving only ~40% density.
+
+        Instead, switch unified source bundles every time the top-level directory changes.
+        This still achieves the goal of *usually* only rebuilding the one top-level
+        directory you touched, and increases source bundle density wildly, to ~95%.
+
+        * wtf/Platform.h:
+
 2018-08-25  Yusuke Suzuki  <[email protected]>
 
         Shrink size of XMLHttpRequest

Modified: releases/WebKitGTK/webkit-2.22/Source/WTF/Scripts/generate-unified-source-bundles.rb (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WTF/Scripts/generate-unified-source-bundles.rb	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WTF/Scripts/generate-unified-source-bundles.rb	2018-09-18 13:31:38 UTC (rev 236118)
@@ -210,10 +210,20 @@
     end
 end
 
+def TopLevelDirectoryForPath(path)
+    if !path
+        return nil
+    end
+    while path.dirname != path.dirname.dirname
+        path = path.dirname
+    end
+    return path
+end
+
 def ProcessFileForUnifiedSourceGeneration(sourceFile)
     path = sourceFile.path
-    if ($currentDirectory != path.dirname)
-        log("Flushing because new dirname; old: #{$currentDirectory}, new: #{path.dirname}")
+    if (TopLevelDirectoryForPath($currentDirectory) != TopLevelDirectoryForPath(path.dirname))
+        log("Flushing because new top level directory; old: #{$currentDirectory}, new: #{path.dirname}")
         $bundleManagers.each_value { |x| x.flush }
         $currentDirectory = path.dirname
     end

Modified: releases/WebKitGTK/webkit-2.22/Source/WTF/wtf/Platform.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WTF/wtf/Platform.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WTF/wtf/Platform.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -1314,6 +1314,7 @@
 #if PLATFORM(MAC)
 #define HAVE_TOUCH_BAR 1
 #define HAVE_ADVANCED_SPELL_CHECKING 1
+#define USE_DICTATION_ALTERNATIVES 1
 
 #if defined(__LP64__)
 #define ENABLE_WEB_PLAYBACK_CONTROLS_MANAGER 1

Modified: releases/WebKitGTK/webkit-2.22/Source/WTF/wtf/text/StringBuffer.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WTF/wtf/text/StringBuffer.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WTF/wtf/text/StringBuffer.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -29,9 +29,10 @@
 #ifndef StringBuffer_h
 #define StringBuffer_h
 
-#include <wtf/Assertions.h>
 #include <limits>
 #include <unicode/utypes.h>
+#include <wtf/Assertions.h>
+#include <wtf/MallocPtr.h>
 
 namespace WTF {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog	2018-09-18 13:31:38 UTC (rev 236118)
@@ -1,3 +1,38 @@
+2018-08-30  Tim Horton  <[email protected]>
+
+        Bundle unified sources more tightly in projects with deep directory structures
+        https://bugs.webkit.org/show_bug.cgi?id=189009
+
+        Reviewed by Simon Fraser.
+
+        Fix a variety of unification errors due to reshuffling the bundles.
+
+        * Modules/mediastream/RTCController.cpp:
+        * SourcesCocoa.txt:
+        * WebCore.xcodeproj/project.pbxproj:
+        * crypto/algorithms/CryptoAlgorithmECDSA.cpp:
+        (WebCore::CryptoAlgorithmECDSA::importKey):
+        * dom/Document.h:
+        * html/parser/HTMLTreeBuilder.cpp:
+        * loader/appcache/ApplicationCacheResourceLoader.h:
+        * page/AlternativeTextClient.h:
+        * platform/Pasteboard.h:
+        * platform/graphics/DisplayRefreshMonitor.cpp:
+        * platform/graphics/FontFamilySpecificationNull.cpp:
+        * platform/graphics/cocoa/WebGLLayer.mm:
+        (-[WebGLLayer initWithGraphicsContext3D:]):
+        (-[WebGLLayer copyImageSnapshotWithColorSpace:]):
+        (-[WebGLLayer display]):
+        (-[WebGLLayer allocateIOSurfaceBackingStoreWithSize:usingAlpha:]):
+        * platform/graphics/cocoa/WebGPULayer.mm:
+        (-[WebGPULayer initWithGPUDevice:]):
+        * platform/graphics/metal/GPUCommandQueueMetal.mm:
+        * platform/mac/PasteboardMac.mm:
+        * platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp:
+        * platform/network/ResourceRequestBase.cpp:
+        * rendering/updating/RenderTreeBuilderBlockFlow.cpp:
+        * rendering/updating/RenderTreeBuilderInline.cpp:
+
 2018-08-29  Daniel Bates  <[email protected]>
 
         REGRESSION (r226138): WebCore::subdivide() may return an empty vector; Web process can crash when performing find in Epiphany

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/cache/WorkerCacheStorageConnection.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/cache/WorkerCacheStorageConnection.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/cache/WorkerCacheStorageConnection.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -29,6 +29,7 @@
 
 #include "CacheQueryOptions.h"
 #include "CacheStorageProvider.h"
+#include "ClientOrigin.h"
 #include "Document.h"
 #include "Page.h"
 #include "WorkerGlobalScope.h"
@@ -36,7 +37,6 @@
 #include "WorkerRunLoop.h"
 #include "WorkerThread.h"
 
-
 namespace WebCore {
 using namespace WebCore::DOMCacheEngine;
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/mediastream/RTCController.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/mediastream/RTCController.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/mediastream/RTCController.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -27,6 +27,7 @@
 
 #if ENABLE(WEB_RTC)
 
+#include "Document.h"
 #include "LibWebRTCProvider.h"
 #include "RTCPeerConnection.h"
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -28,6 +28,7 @@
 
 #if ENABLE(PAYMENT_REQUEST)
 
+#include "EventNames.h"
 #include "PaymentRequest.h"
 
 namespace WebCore {

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/webvr/VRDisplay.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/webvr/VRDisplay.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/webvr/VRDisplay.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -29,6 +29,7 @@
 #include "CanvasRenderingContext.h"
 #include "Chrome.h"
 #include "DOMException.h"
+#include "DOMWindow.h"
 #include "EventNames.h"
 #include "Page.h"
 #include "ScriptedAnimationController.h"

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/PAL/pal/crypto/gcrypt/Utilities.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/PAL/pal/crypto/gcrypt/Utilities.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/PAL/pal/crypto/gcrypt/Utilities.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -28,6 +28,7 @@
 
 #include <gcrypt.h>
 #include <wtf/Assertions.h>
+#include <wtf/Optional.h>
 
 namespace PAL {
 namespace GCrypt {

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/SourcesCocoa.txt (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/SourcesCocoa.txt	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/SourcesCocoa.txt	2018-09-18 13:31:38 UTC (rev 236118)
@@ -389,7 +389,7 @@
 platform/ios/PlatformSpeechSynthesizerIOS.mm @no-unify
 platform/ios/PlaybackSessionInterfaceAVKit.mm @no-unify
 platform/ios/QuickLook.mm
-platform/ios/QuickLookSoftLink.mm
+platform/ios/QuickLookSoftLink.mm @no-unify
 platform/ios/RemoteCommandListenerIOS.mm
 platform/ios/ScrollAnimatorIOS.mm
 platform/ios/ScrollbarThemeIOS.mm
@@ -399,7 +399,7 @@
 platform/ios/SystemMemoryIOS.cpp
 platform/ios/ThemeIOS.mm @no-unify
 platform/ios/TileControllerMemoryHandlerIOS.cpp
-platform/ios/UserAgentIOS.mm
+platform/ios/UserAgentIOS.mm @no-unify
 platform/ios/ValidationBubbleIOS.mm @no-unify
 platform/ios/VideoFullscreenInterfaceAVKit.mm @no-unify
 platform/ios/WebAVPlayerController.mm

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/SourcesGTK.txt (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/SourcesGTK.txt	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/SourcesGTK.txt	2018-09-18 13:31:38 UTC (rev 236118)
@@ -61,14 +61,14 @@
 
 platform/geoclue/GeolocationProviderGeoclue.cpp
 
-platform/graphics/GLContext.cpp
+platform/graphics/GLContext.cpp @no-unify
 platform/graphics/GraphicsContext3DPrivate.cpp
 
-platform/graphics/cairo/BackingStoreBackendCairoX11.cpp
+platform/graphics/cairo/BackingStoreBackendCairoX11.cpp @no-unify
 
 platform/graphics/egl/GLContextEGL.cpp
 platform/graphics/egl/GLContextEGLWayland.cpp @no-unify
-platform/graphics/egl/GLContextEGLX11.cpp
+platform/graphics/egl/GLContextEGLX11.cpp @no-unify
 
 platform/graphics/glx/GLContextGLX.cpp
 
@@ -82,9 +82,9 @@
 
 platform/graphics/wayland/PlatformDisplayWayland.cpp
 
-platform/graphics/x11/PlatformDisplayX11.cpp
-platform/graphics/x11/XErrorTrapper.cpp
-platform/graphics/x11/XUniqueResource.cpp
+platform/graphics/x11/PlatformDisplayX11.cpp @no-unify
+platform/graphics/x11/XErrorTrapper.cpp @no-unify
+platform/graphics/x11/XUniqueResource.cpp @no-unify
 
 platform/gtk/DragDataGtk.cpp
 platform/gtk/LocalizedStringsGtk.cpp

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/crypto/algorithms/CryptoAlgorithmECDSA.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/crypto/algorithms/CryptoAlgorithmECDSA.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/crypto/algorithms/CryptoAlgorithmECDSA.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -36,6 +36,7 @@
 
 namespace WebCore {
 
+namespace CryptoAlgorithmECDSAInternal {
 static const char* const ALG256 = "ES256";
 static const char* const ALG384 = "ES384";
 static const char* const ALG512 = "ES512";
@@ -42,6 +43,7 @@
 static const char* const P256 = "P-256";
 static const char* const P384 = "P-384";
 static const char* const P521 = "P-521";
+}
 
 Ref<CryptoAlgorithm> CryptoAlgorithmECDSA::create()
 {
@@ -102,6 +104,7 @@
 
 void CryptoAlgorithmECDSA::importKey(CryptoKeyFormat format, KeyData&& data, const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyCallback&& callback, ExceptionCallback&& exceptionCallback)
 {
+    using namespace CryptoAlgorithmECDSAInternal;
     const auto& ecParameters = downcast<CryptoAlgorithmEcKeyParams>(parameters);
 
     RefPtr<CryptoKeyEC> result;

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/crypto/gcrypt/GCryptUtilities.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/crypto/gcrypt/GCryptUtilities.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/crypto/gcrypt/GCryptUtilities.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -34,6 +34,7 @@
 #include <pal/crypto/CryptoDigest.h>
 #include <pal/crypto/gcrypt/Handle.h>
 #include <pal/crypto/gcrypt/Utilities.h>
+#include <wtf/Optional.h>
 
 namespace WebCore {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/dom/Document.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/dom/Document.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/dom/Document.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -641,7 +641,7 @@
     
     WEBCORE_EXPORT DocumentLoader* loader() const;
 
-    WEBCORE_EXPORT ExceptionOr<RefPtr<WindowProxy>> openForBindings(DOMWindow& activeWindow, DOMWindow& firstWindow, const String& url, const AtomicString& name, const String& features);
+    WEBCORE_EXPORT ExceptionOr<RefPtr<WindowProxy>> openForBindings(DOMWindow& activeWindow, DOMWindow& firstDOMWindow, const String& url, const AtomicString& name, const String& features);
     WEBCORE_EXPORT ExceptionOr<Document&> openForBindings(Document* responsibleDocument, const String& type, const String& replace);
 
     // FIXME: We should rename this at some point and give back the name 'open' to the HTML specified ones.

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/html/parser/HTMLTreeBuilder.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/html/parser/HTMLTreeBuilder.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/html/parser/HTMLTreeBuilder.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -32,6 +32,7 @@
 #include "HTMLDocumentParser.h"
 #include "HTMLFormControlElement.h"
 #include "HTMLFormElement.h"
+#include "HTMLInputElement.h"
 #include "HTMLOptGroupElement.h"
 #include "HTMLOptionElement.h"
 #include "HTMLParserIdioms.h"

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/loader/appcache/ApplicationCacheResourceLoader.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/loader/appcache/ApplicationCacheResourceLoader.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/loader/appcache/ApplicationCacheResourceLoader.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -25,6 +25,7 @@
 
 #pragma once
 
+#include "ApplicationCacheResource.h"
 #include "CachedRawResource.h"
 #include "CachedRawResourceClient.h"
 #include "CachedResourceHandle.h"

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/page/AlternativeTextClient.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/page/AlternativeTextClient.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/page/AlternativeTextClient.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -29,11 +29,6 @@
 #include <wtf/Vector.h>
 #include <wtf/text/WTFString.h>
 
-#if PLATFORM(MAC)
-// Some platforms provide UI for suggesting alternative dictation text.
-#define USE_DICTATION_ALTERNATIVES 1
-#endif
-
 namespace WebCore {
 
 enum ReasonForDismissingAlternativeText {

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/Pasteboard.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/Pasteboard.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/Pasteboard.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -336,6 +336,7 @@
 #if PLATFORM(MAC)
 extern const char* const WebArchivePboardType;
 extern const char* const WebURLNamePboardType;
+extern const char* const WebURLsWithTitlesPboardType;
 #endif
 
 #if !PLATFORM(GTK)

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -33,6 +33,7 @@
 #include "NotImplemented.h"
 #include <CoreAudio/AudioHardware.h>
 #include <wtf/MainThread.h>
+#include <wtf/text/WTFString.h>
 
 namespace WebCore {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -30,6 +30,7 @@
 
 #include "DisplayRefreshMonitorClient.h"
 #include "DisplayRefreshMonitorManager.h"
+#include "Logging.h"
 
 #if PLATFORM(IOS)
 #include "DisplayRefreshMonitorIOS.h"

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontFamilySpecificationNull.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontFamilySpecificationNull.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontFamilySpecificationNull.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -27,6 +27,7 @@
 #include "FontFamilySpecificationNull.h"
 
 #include "FontSelector.h"
+#include <wtf/text/AtomicStringHash.h>
 
 namespace WebCore {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontGenericFamilies.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontGenericFamilies.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontGenericFamilies.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -29,6 +29,7 @@
 #include <unicode/uscript.h>
 #include <wtf/HashMap.h>
 #include <wtf/text/AtomicString.h>
+#include <wtf/text/AtomicStringHash.h>
 
 namespace WebCore {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontTaggedSettings.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontTaggedSettings.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontTaggedSettings.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -27,10 +27,9 @@
 #include "config.h"
 #include "FontTaggedSettings.h"
 
+#include <wtf/text/AtomicStringHash.h>
 #include <wtf/text/TextStream.h>
 
-#include <wtf/text/AtomicStringHash.h>
-
 namespace WebCore {
 
 template <>

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cairo/FontCairo.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cairo/FontCairo.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cairo/FontCairo.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -34,6 +34,7 @@
 #if USE(CAIRO)
 
 #include "AffineTransform.h"
+#include "CairoOperations.h"
 #include "CairoUtilities.h"
 #include "Font.h"
 #include "GlyphBuffer.h"

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cocoa/WebGLLayer.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cocoa/WebGLLayer.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cocoa/WebGLLayer.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -42,13 +42,11 @@
 #import <OpenGL/gl.h>
 #endif
 
-using namespace WebCore;
-
 @implementation WebGLLayer
 
 @synthesize context=_context;
 
--(id)initWithGraphicsContext3D:(GraphicsContext3D*)context
+-(id)initWithGraphicsContext3D:(WebCore::GraphicsContext3D*)context
 {
     _context = context;
     self = [super init];
@@ -86,7 +84,7 @@
 }
 #endif
 
--(CGImageRef)copyImageSnapshotWithColorSpace:(CGColorSpaceRef)colorSpace
+- (CGImageRef)copyImageSnapshotWithColorSpace:(CGColorSpaceRef)colorSpace
 {
     if (!_context)
         return nullptr;
@@ -96,7 +94,7 @@
 
     RetainPtr<CGColorSpaceRef> imageColorSpace = colorSpace;
     if (!imageColorSpace)
-        imageColorSpace = sRGBColorSpaceRef();
+        imageColorSpace = WebCore::sRGBColorSpaceRef();
 
     CGRect layerBounds = CGRectIntegral([self bounds]);
 
@@ -141,19 +139,19 @@
 #endif
 
     _context->markLayerComposited();
-    PlatformCALayer* layer = PlatformCALayer::platformCALayer((__bridge void*)self);
+    WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self);
     if (layer && layer->owner())
         layer->owner()->platformCALayerLayerDidDisplay(layer);
 }
 
 #if USE(OPENGL)
-- (void)allocateIOSurfaceBackingStoreWithSize:(IntSize)size usingAlpha:(BOOL)usingAlpha
+- (void)allocateIOSurfaceBackingStoreWithSize:(WebCore::IntSize)size usingAlpha:(BOOL)usingAlpha
 {
     _bufferSize = size;
     _usingAlpha = usingAlpha;
-    _contentsBuffer = WebCore::IOSurface::create(size, sRGBColorSpaceRef());
-    _drawingBuffer = WebCore::IOSurface::create(size, sRGBColorSpaceRef());
-    _spareBuffer = WebCore::IOSurface::create(size, sRGBColorSpaceRef());
+    _contentsBuffer = WebCore::IOSurface::create(size, WebCore::sRGBColorSpaceRef());
+    _drawingBuffer = WebCore::IOSurface::create(size, WebCore::sRGBColorSpaceRef());
+    _spareBuffer = WebCore::IOSurface::create(size, WebCore::sRGBColorSpaceRef());
 
     ASSERT(_contentsBuffer);
     ASSERT(_drawingBuffer);

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -34,13 +34,11 @@
 #import <wtf/FastMalloc.h>
 #import <wtf/RetainPtr.h>
 
-using namespace WebCore;
-
 @implementation WebGPULayer
 
 @synthesize context=_context;
 
-- (id)initWithGPUDevice:(GPUDevice*)context
+- (id)initWithGPUDevice:(WebCore::GPUDevice*)context
 {
     self = [super init];
     _context = context;
@@ -50,7 +48,7 @@
 
 #if PLATFORM(MAC)
     self.contentsScale = _devicePixelRatio;
-    self.colorspace = sRGBColorSpaceRef();
+    self.colorspace = WebCore::sRGBColorSpaceRef();
 #endif
     return self;
 }

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/metal/GPUCommandQueueMetal.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/metal/GPUCommandQueueMetal.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/metal/GPUCommandQueueMetal.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -31,6 +31,7 @@
 #import "GPUDevice.h"
 #import "Logging.h"
 #import <Metal/Metal.h>
+#import <wtf/text/WTFString.h>
 
 namespace WebCore {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/mac/PasteboardMac.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/mac/PasteboardMac.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/mac/PasteboardMac.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -52,10 +52,10 @@
 
 const char* const WebArchivePboardType = "Apple Web Archive pasteboard type";
 const char* const WebURLNamePboardType = "public.url-name";
+const char* const WebURLsWithTitlesPboardType = "WebURLsWithTitlesPboardType";
 
 const char WebSmartPastePboardType[] = "NeXT smart paste pasteboard type";
 const char WebURLPboardType[] = "public.url";
-const char WebURLsWithTitlesPboardType[] = "WebURLsWithTitlesPboardType";
 
 static const Vector<String> writableTypesForURL()
 {

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -28,6 +28,7 @@
 
 #if ENABLE(MEDIA_STREAM)
 
+#include "CoreVideoSoftLink.h"
 #include "Logging.h"
 #include <wtf/Algorithms.h>
 #include <wtf/NeverDestroyed.h>

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/network/ResourceRequestBase.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/network/ResourceRequestBase.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/network/ResourceRequestBase.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -29,6 +29,7 @@
 #include "HTTPHeaderNames.h"
 #include "PublicSuffix.h"
 #include "ResourceRequest.h"
+#include "ResourceResponse.h"
 #include "SecurityPolicy.h"
 #include <wtf/PointerComparison.h>
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/network/soup/SoupNetworkSession.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/network/soup/SoupNetworkSession.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/network/soup/SoupNetworkSession.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -26,6 +26,7 @@
 #ifndef SoupNetworkSession_h
 #define SoupNetworkSession_h
 
+#include <gio/gio.h>
 #include <glib-object.h>
 #include <pal/SessionID.h>
 #include <wtf/Function.h>

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/text/TextCodecUTF8.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/text/TextCodecUTF8.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/text/TextCodecUTF8.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -29,6 +29,7 @@
 #include "TextCodecASCIIFastPath.h"
 #include <wtf/text/CString.h>
 #include <wtf/text/StringBuffer.h>
+#include <wtf/text/WTFString.h>
 #include <wtf/unicode/CharacterNames.h>
 
 namespace WebCore {

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/text/TextCodecUTF8.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/text/TextCodecUTF8.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/text/TextCodecUTF8.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -26,6 +26,7 @@
 #pragma once
 
 #include "TextCodec.h"
+#include <unicode/utf8.h>
 #include <wtf/text/LChar.h>
 
 namespace WebCore {

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderBlockFlow.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderBlockFlow.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderBlockFlow.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -27,6 +27,8 @@
 #include "RenderTreeBuilderBlockFlow.h"
 
 #include "RenderMultiColumnFlow.h"
+#include "RenderTreeBuilderBlock.h"
+#include "RenderTreeBuilderMultiColumn.h"
 
 namespace WebCore {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderFormControls.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderFormControls.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderFormControls.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -28,6 +28,7 @@
 
 #include "RenderButton.h"
 #include "RenderMenuList.h"
+#include "RenderTreeBuilderBlock.h"
 
 namespace WebCore {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -30,6 +30,8 @@
 #include "RenderFullScreen.h"
 #include "RenderInline.h"
 #include "RenderTable.h"
+#include "RenderTreeBuilderMultiColumn.h"
+#include "RenderTreeBuilderTable.h"
 
 namespace WebCore {
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderRuby.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderRuby.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderRuby.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -26,6 +26,7 @@
 #include "config.h"
 #include "RenderTreeBuilderRuby.h"
 
+#include "RenderAncestorIterator.h"
 #include "RenderRuby.h"
 #include "RenderRubyBase.h"
 #include "RenderRubyRun.h"

Modified: releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -41,6 +41,8 @@
 #include "RenderDescendantIterator.h"
 #include "RenderFullScreen.h"
 #include "RenderInline.h"
+#include "RenderMultiColumnFlow.h"
+#include "RenderMultiColumnSet.h"
 #include "RenderTreeUpdaterGeneratedContent.h"
 #include "RuntimeEnabledFeatures.h"
 #include "StyleResolver.h"

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/ChangeLog (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/ChangeLog	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/ChangeLog	2018-09-18 13:31:38 UTC (rev 236118)
@@ -1,3 +1,53 @@
+2018-08-30  Tim Horton  <[email protected]>
+
+        Bundle unified sources more tightly in projects with deep directory structures
+        https://bugs.webkit.org/show_bug.cgi?id=189009
+
+        Reviewed by Simon Fraser.
+
+        Fix a variety of unification errors due to reshuffling the bundles.
+
+        * Shared/APIWebArchive.mm:
+        * Shared/APIWebArchiveResource.mm:
+        * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
+        * Shared/Plugins/Netscape/mac/PluginInformationMac.mm:
+        * SourcesCocoa.txt:
+        * SourcesGTK.txt:
+        * UIProcess/API/APIAutomationSessionClient.h:
+        (API::AutomationSessionClient::sessionIdentifier const):
+        (API::AutomationSessionClient::messageOfCurrentJavaScriptDialogOnPage):
+        (API::AutomationSessionClient::setUserInputForCurrentJavaScriptPromptOnPage):
+        * UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm:
+        (-[WKCustomProtocolLoader initWithLegacyCustomProtocolManagerProxy:customProtocolID:request:]):
+        (-[WKCustomProtocolLoader connection:didFailWithError:]):
+        (-[WKCustomProtocolLoader connection:didReceiveResponse:]):
+        * UIProcess/Plugins/PluginProcessProxy.cpp:
+        (WebKit::generatePluginProcessCallbackID):
+        (WebKit::PluginProcessProxy::fetchWebsiteData):
+        (WebKit::PluginProcessProxy::deleteWebsiteData):
+        (WebKit::PluginProcessProxy::deleteWebsiteDataForHostNames):
+        (WebKit::generateCallbackID): Deleted.
+        * UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm:
+        (-[WKScrollingNodeScrollViewDelegate scrollViewWillEndDragging:withVelocity:targetContentOffset:]):
+        * UIProcess/Storage/StorageProcessProxy.cpp:
+        (WebKit::generateStorageProcessCallbackID):
+        (WebKit::StorageProcessProxy::fetchWebsiteData):
+        (WebKit::StorageProcessProxy::deleteWebsiteData):
+        (WebKit::StorageProcessProxy::deleteWebsiteDataForOrigins):
+        (WebKit::generateCallbackID): Deleted.
+        * WebKit.xcodeproj/project.pbxproj:
+        * WebProcess/Plugins/PDF/PDFPlugin.mm:
+        (-[WKPDFPluginAccessibilityObject accessibilityPerformAction:]):
+        (-[WKPDFPluginAccessibilityObject accessibilityFocusedUIElement]):
+        (-[WKPDFPluginAccessibilityObject accessibilityAssociatedControlForAnnotation:]):
+        (-[WKPDFPluginAccessibilityObject accessibilityHitTest:]):
+        (-[WKPDFLayerControllerDelegate updateScrollPosition:]):
+        (WebKit::PDFPlugin::updateCursor):
+        (WebKit::coreCursor):
+        (appendValuesInPDFNameSubtreeToVector): Deleted.
+        (getAllValuesInPDFNameTree): Deleted.
+        (getAllScriptsInPDFDocument): Deleted.
+
 2018-08-27  Alex Christensen  <[email protected]>
 
         Pass webPageID and webFrameID to NetworkLoad for speculative loads

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/APIWebArchive.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/APIWebArchive.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/APIWebArchive.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -34,10 +34,9 @@
 #include <WebCore/LegacyWebArchive.h>
 #include <wtf/RetainPtr.h>
 
+namespace API {
 using namespace WebCore;
 
-namespace API {
-
 Ref<WebArchive> WebArchive::create(WebArchiveResource* mainResource, RefPtr<API::Array>&& subresources, RefPtr<API::Array>&& subframeArchives)
 {
     return adoptRef(*new WebArchive(mainResource, WTFMove(subresources), WTFMove(subframeArchives)));

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/APIWebArchiveResource.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/APIWebArchiveResource.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/APIWebArchiveResource.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -33,10 +33,9 @@
 #include <WebCore/URL.h>
 #include <wtf/RetainPtr.h>
 
+namespace API {
 using namespace WebCore;
 
-namespace API {
-
 Ref<WebArchiveResource> WebArchiveResource::create(API::Data* data, const String& URL, const String& MIMEType, const String& textEncoding)
 {
     return adoptRef(*new WebArchiveResource(data, URL, MIMEType, textEncoding));

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -34,10 +34,9 @@
 #import <wtf/MainThread.h>
 #import <wtf/spi/cf/CFBundleSPI.h>
 
+namespace WebKit {
 using namespace WebCore;
 
-namespace WebKit {
-
 static bool getPluginArchitecture(CFBundleRef bundle, PluginModuleInfo& plugin)
 {
     RetainPtr<CFArrayRef> pluginArchitecturesArray = adoptCF(CFBundleCopyExecutableArchitectures(bundle));

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Plugins/Netscape/mac/PluginInformationMac.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Plugins/Netscape/mac/PluginInformationMac.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Plugins/Netscape/mac/PluginInformationMac.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -34,10 +34,9 @@
 #import "StringUtilities.h"
 #import <WebCore/PluginBlacklist.h>
 
+namespace WebKit {
 using namespace WebCore;
 
-namespace WebKit {
-
 void getPlatformPluginModuleInformation(const PluginModuleInfo& plugin, API::Dictionary::MapType& map)
 {
     map.set(pluginInformationBundleIdentifierKey(), API::String::create(plugin.bundleIdentifier));

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/SourcesCocoa.txt (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/SourcesCocoa.txt	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/SourcesCocoa.txt	2018-09-18 13:31:38 UTC (rev 236118)
@@ -299,9 +299,9 @@
 
 UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm
 
-UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm
+UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm @no-unify
 
-UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm
+UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm @no-unify
 
 UIProcess/Authentication/cocoa/AuthenticationChallengeProxyCocoa.mm
 UIProcess/Authentication/cocoa/SecKeyProxyStore.mm

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/SourcesGTK.txt (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/SourcesGTK.txt	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/SourcesGTK.txt	2018-09-18 13:31:38 UTC (rev 236118)
@@ -207,9 +207,9 @@
 
 UIProcess/linux/MemoryPressureMonitor.cpp
 
-UIProcess/Plugins/gtk/PluginInfoCache.cpp
+UIProcess/Plugins/gtk/PluginInfoCache.cpp @no-unify
 
-UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
+UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp @no-unify
 UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp @no-unify
 
 UIProcess/WebStorage/StorageManager.cpp
@@ -216,7 +216,7 @@
 
 UIProcess/WebsiteData/unix/WebsiteDataStoreUnix.cpp
 
-UIProcess/cairo/BackingStoreCairo.cpp
+UIProcess/cairo/BackingStoreCairo.cpp @no-unify
 
 UIProcess/glib/RemoteInspectorClient.cpp
 
@@ -229,16 +229,16 @@
 UIProcess/gtk/DragAndDropHandler.cpp
 UIProcess/gtk/GestureController.cpp
 UIProcess/gtk/HardwareAccelerationManager.cpp
-UIProcess/gtk/InputMethodFilter.cpp
+UIProcess/gtk/InputMethodFilter.cpp @no-unify
 UIProcess/gtk/KeyBindingTranslator.cpp
 UIProcess/gtk/RemoteWebInspectorProxyGtk.cpp @no-unify
 UIProcess/gtk/TextCheckerGtk.cpp @no-unify
 UIProcess/gtk/WaylandCompositor.cpp @no-unify
-UIProcess/gtk/WebColorPickerGtk.cpp
+UIProcess/gtk/WebColorPickerGtk.cpp @no-unify
 UIProcess/gtk/WebContextMenuProxyGtk.cpp
 UIProcess/gtk/WebInspectorProxyGtk.cpp
 UIProcess/gtk/WebKitInspectorWindow.cpp
-UIProcess/gtk/WebPageProxyGtk.cpp
+UIProcess/gtk/WebPageProxyGtk.cpp @no-unify
 UIProcess/gtk/WebPasteboardProxyGtk.cpp
 UIProcess/gtk/WebPopupMenuProxyGtk.cpp
 UIProcess/gtk/WebPreferencesGtk.cpp

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/API/APIAutomationSessionClient.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/API/APIAutomationSessionClient.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/API/APIAutomationSessionClient.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -51,7 +51,7 @@
 
     virtual ~AutomationSessionClient() { }
 
-    virtual String sessionIdentifier() const { return String(); }
+    virtual WTF::String sessionIdentifier() const { return WTF::String(); }
     virtual void didDisconnectFromRemote(WebKit::WebAutomationSession&) { }
     virtual void requestNewPageWithOptions(WebKit::WebAutomationSession&, AutomationSessionBrowsingContextOptions, CompletionHandler<void(WebKit::WebPageProxy*)>&& completionHandler) { completionHandler(nullptr); }
     virtual void requestMaximizeWindowOfPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&, CompletionHandler<void()>&& completionHandler) { completionHandler(); }
@@ -61,8 +61,8 @@
     virtual bool isShowingJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { return false; }
     virtual void dismissCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { }
     virtual void acceptCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { }
-    virtual String messageOfCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { return String(); }
-    virtual void setUserInputForCurrentJavaScriptPromptOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&, const String&) { }
+    virtual WTF::String messageOfCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { return WTF::String(); }
+    virtual void setUserInputForCurrentJavaScriptPromptOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&, const WTF::String&) { }
     virtual std::optional<_javascript_DialogType> typeOfCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { return std::nullopt; }
 };
 

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -32,23 +32,20 @@
 #import <WebCore/ResourceRequest.h>
 #import <WebCore/ResourceResponse.h>
 
-using namespace WebCore;
-using namespace WebKit;
-
 @interface WKCustomProtocolLoader : NSObject <NSURLConnectionDelegate> {
 @private
-    LegacyCustomProtocolManagerProxy* _customProtocolManagerProxy;
+    WebKit::LegacyCustomProtocolManagerProxy* _customProtocolManagerProxy;
     uint64_t _customProtocolID;
     NSURLCacheStoragePolicy _storagePolicy;
     NSURLConnection *_urlConnection;
 }
-- (id)initWithLegacyCustomProtocolManagerProxy:(LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request;
+- (id)initWithLegacyCustomProtocolManagerProxy:(WebKit::LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request;
 - (void)customProtocolManagerProxyDestroyed;
 @end
 
 @implementation WKCustomProtocolLoader
 
-- (id)initWithLegacyCustomProtocolManagerProxy:(LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request
+- (id)initWithLegacyCustomProtocolManagerProxy:(WebKit::LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request
 {
     self = [super init];
     if (!self)
@@ -85,7 +82,7 @@
 
 - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
 {
-    ResourceError coreError(error);
+    WebCore::ResourceError coreError(error);
     _customProtocolManagerProxy->didFailWithError(_customProtocolID, coreError);
     _customProtocolManagerProxy->stopLoading(_customProtocolID);
 }
@@ -99,7 +96,7 @@
 
 - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
 {
-    ResourceResponse coreResponse(response);
+    WebCore::ResourceResponse coreResponse(response);
     _customProtocolManagerProxy->didReceiveResponse(_customProtocolID, coreResponse, _storagePolicy);
 }
 
@@ -127,6 +124,7 @@
 @end
 
 namespace WebKit {
+using namespace WebCore;
 
 void LegacyCustomProtocolManagerClient::startLoading(LegacyCustomProtocolManagerProxy& manager, uint64_t customProtocolID, const ResourceRequest& coreRequest)
 {

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -48,7 +48,7 @@
 static const Seconds shutdownTimeout { 1_min };
 static const Seconds snapshottingShutdownTimeout { 15_s };
 
-static uint64_t generateCallbackID()
+static uint64_t generatePluginProcessCallbackID()
 {
     static uint64_t callbackID;
 
@@ -114,7 +114,7 @@
 
 void PluginProcessProxy::fetchWebsiteData(CompletionHandler<void (Vector<String>)>&& completionHandler)
 {
-    uint64_t callbackID = generateCallbackID();
+    uint64_t callbackID = generatePluginProcessCallbackID();
     m_pendingFetchWebsiteDataCallbacks.set(callbackID, WTFMove(completionHandler));
 
     if (state() == State::Launching) {
@@ -127,7 +127,7 @@
 
 void PluginProcessProxy::deleteWebsiteData(WallTime modifiedSince, CompletionHandler<void ()>&& completionHandler)
 {
-    uint64_t callbackID = generateCallbackID();
+    uint64_t callbackID = generatePluginProcessCallbackID();
     m_pendingDeleteWebsiteDataCallbacks.set(callbackID, WTFMove(completionHandler));
 
     if (state() == State::Launching) {
@@ -140,7 +140,7 @@
 
 void PluginProcessProxy::deleteWebsiteDataForHostNames(const Vector<String>& hostNames, CompletionHandler<void ()>&& completionHandler)
 {
-    uint64_t callbackID = generateCallbackID();
+    uint64_t callbackID = generatePluginProcessCallbackID();
     m_pendingDeleteWebsiteDataForHostNamesCallbacks.set(callbackID, WTFMove(completionHandler));
 
     if (state() == State::Launching) {

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm	2018-09-18 13:31:38 UTC (rev 236118)
@@ -43,8 +43,6 @@
 #import <WebCore/ScrollSnapOffsetsInfo.h>
 #endif
 
-using namespace WebCore;
-
 @implementation WKScrollingNodeScrollViewDelegate
 
 - (instancetype)initWithScrollingTreeNodeDelegate:(WebKit::ScrollingTreeScrollingNodeDelegateIOS*)delegate
@@ -80,7 +78,7 @@
 
     if (!_scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsets().isEmpty()) {
         unsigned index;
-        float potentialSnapPosition = closestSnapOffset(_scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsets(), _scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsetRanges(), horizontalTarget, velocity.x, index);
+        float potentialSnapPosition = WebCore::closestSnapOffset(_scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsets(), _scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsetRanges(), horizontalTarget, velocity.x, index);
         _scrollingTreeNodeDelegate->scrollingNode().setCurrentHorizontalSnapPointIndex(index);
         if (horizontalTarget >= 0 && horizontalTarget <= scrollView.contentSize.width)
             targetContentOffset->x = potentialSnapPosition;
@@ -88,7 +86,7 @@
 
     if (!_scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsets().isEmpty()) {
         unsigned index;
-        float potentialSnapPosition = closestSnapOffset(_scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsets(), _scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsetRanges(), verticalTarget, velocity.y, index);
+        float potentialSnapPosition = WebCore::closestSnapOffset(_scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsets(), _scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsetRanges(), verticalTarget, velocity.y, index);
         _scrollingTreeNodeDelegate->scrollingNode().setCurrentVerticalSnapPointIndex(index);
         if (verticalTarget >= 0 && verticalTarget <= scrollView.contentSize.height)
             targetContentOffset->y = potentialSnapPosition;
@@ -122,6 +120,7 @@
 @end
 
 namespace WebKit {
+using namespace WebCore;
 
 ScrollingTreeScrollingNodeDelegateIOS::ScrollingTreeScrollingNodeDelegateIOS(ScrollingTreeScrollingNode& scrollingNode)
     : ScrollingTreeScrollingNodeDelegate(scrollingNode)

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Storage/StorageProcessProxy.cpp (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Storage/StorageProcessProxy.cpp	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Storage/StorageProcessProxy.cpp	2018-09-18 13:31:38 UTC (rev 236118)
@@ -37,7 +37,7 @@
 namespace WebKit {
 using namespace WebCore;
 
-static uint64_t generateCallbackID()
+static uint64_t generateStorageProcessCallbackID()
 {
     static uint64_t callbackID;
 
@@ -105,7 +105,7 @@
 {
     ASSERT(canSendMessage());
 
-    uint64_t callbackID = generateCallbackID();
+    uint64_t callbackID = generateStorageProcessCallbackID();
     m_pendingFetchWebsiteDataCallbacks.add(callbackID, WTFMove(completionHandler));
 
     send(Messages::StorageProcess::FetchWebsiteData(sessionID, dataTypes, callbackID), 0);
@@ -113,7 +113,7 @@
 
 void StorageProcessProxy::deleteWebsiteData(PAL::SessionID sessionID, OptionSet<WebsiteDataType> dataTypes, WallTime modifiedSince, CompletionHandler<void ()>&& completionHandler)
 {
-    auto callbackID = generateCallbackID();
+    auto callbackID = generateStorageProcessCallbackID();
 
     m_pendingDeleteWebsiteDataCallbacks.add(callbackID, WTFMove(completionHandler));
     send(Messages::StorageProcess::DeleteWebsiteData(sessionID, dataTypes, modifiedSince, callbackID), 0);
@@ -123,7 +123,7 @@
 {
     ASSERT(canSendMessage());
 
-    uint64_t callbackID = generateCallbackID();
+    uint64_t callbackID = generateStorageProcessCallbackID();
     m_pendingDeleteWebsiteDataForOriginsCallbacks.add(callbackID, WTFMove(completionHandler));
 
     send(Messages::StorageProcess::DeleteWebsiteDataForOrigins(sessionID, dataTypes, origins, callbackID), 0);

Modified: releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/WebPageProxy.h (236117 => 236118)


--- releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/WebPageProxy.h	2018-09-18 13:31:01 UTC (rev 236117)
+++ releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/WebPageProxy.h	2018-09-18 13:31:38 UTC (rev 236118)
@@ -61,7 +61,6 @@
 #include "WebPageInjectedBundleClient.h"
 #include "WebPaymentCoordinatorProxy.h"
 #include "WebPreferences.h"
-#include <WebCore/AlternativeTextClient.h> // FIXME: Needed by WebPageProxyMessages.h for DICTATION_ALTERNATIVES.
 #include "WebPageProxyMessages.h"
 #include "WebPopupMenuProxy.h"
 #include "WebProcessLifetimeTracker.h"
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to