⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 236118 in webkit


Ignore:
Timestamp:
Sep 18, 2018, 6:31:38 AM (8 years ago)
Author:
Carlos Garcia Campos
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.

Location:
releases/WebKitGTK/webkit-2.22/Source
Files:
52 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.22/Source/WTF/ChangeLog

    r236058 r236118  
     12018-08-30  Tim Horton  <timothy_horton@apple.com>
     2
     3        Bundle unified sources more tightly in projects with deep directory structures
     4        https://bugs.webkit.org/show_bug.cgi?id=189009
     5
     6        Reviewed by Simon Fraser.
     7
     8        * Scripts/generate-unified-source-bundles.rb:
     9        It turns out our plan to switch unified source bundle every time the directory
     10        changes is not a good fit for projects like WebKit2 with many small directories.
     11        It leaves many unified source bundles with only a single source file,
     12        achieving only ~40% density.
     13
     14        Instead, switch unified source bundles every time the top-level directory changes.
     15        This still achieves the goal of *usually* only rebuilding the one top-level
     16        directory you touched, and increases source bundle density wildly, to ~95%.
     17
     18        * wtf/Platform.h:
     19
    1202018-08-25  Yusuke Suzuki  <yusukesuzuki@slowstart.org>
    221
  • releases/WebKitGTK/webkit-2.22/Source/WTF/Scripts/generate-unified-source-bundles.rb

    r236055 r236118  
    211211end
    212212
     213def TopLevelDirectoryForPath(path)
     214    if !path
     215        return nil
     216    end
     217    while path.dirname != path.dirname.dirname
     218        path = path.dirname
     219    end
     220    return path
     221end
     222
    213223def ProcessFileForUnifiedSourceGeneration(sourceFile)
    214224    path = sourceFile.path
    215     if ($currentDirectory != path.dirname)
    216         log("Flushing because new dirname; old: #{$currentDirectory}, new: #{path.dirname}")
     225    if (TopLevelDirectoryForPath($currentDirectory) != TopLevelDirectoryForPath(path.dirname))
     226        log("Flushing because new top level directory; old: #{$currentDirectory}, new: #{path.dirname}")
    217227        $bundleManagers.each_value { |x| x.flush }
    218228        $currentDirectory = path.dirname
  • releases/WebKitGTK/webkit-2.22/Source/WTF/wtf/Platform.h

    r234677 r236118  
    13151315#define HAVE_TOUCH_BAR 1
    13161316#define HAVE_ADVANCED_SPELL_CHECKING 1
     1317#define USE_DICTATION_ALTERNATIVES 1
    13171318
    13181319#if defined(__LP64__)
  • releases/WebKitGTK/webkit-2.22/Source/WTF/wtf/text/StringBuffer.h

    r231337 r236118  
    3030#define StringBuffer_h
    3131
    32 #include <wtf/Assertions.h>
    3332#include <limits>
    3433#include <unicode/utypes.h>
     34#include <wtf/Assertions.h>
     35#include <wtf/MallocPtr.h>
    3536
    3637namespace WTF {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/ChangeLog

    r236113 r236118  
     12018-08-30  Tim Horton  <timothy_horton@apple.com>
     2
     3        Bundle unified sources more tightly in projects with deep directory structures
     4        https://bugs.webkit.org/show_bug.cgi?id=189009
     5
     6        Reviewed by Simon Fraser.
     7
     8        Fix a variety of unification errors due to reshuffling the bundles.
     9
     10        * Modules/mediastream/RTCController.cpp:
     11        * SourcesCocoa.txt:
     12        * WebCore.xcodeproj/project.pbxproj:
     13        * crypto/algorithms/CryptoAlgorithmECDSA.cpp:
     14        (WebCore::CryptoAlgorithmECDSA::importKey):
     15        * dom/Document.h:
     16        * html/parser/HTMLTreeBuilder.cpp:
     17        * loader/appcache/ApplicationCacheResourceLoader.h:
     18        * page/AlternativeTextClient.h:
     19        * platform/Pasteboard.h:
     20        * platform/graphics/DisplayRefreshMonitor.cpp:
     21        * platform/graphics/FontFamilySpecificationNull.cpp:
     22        * platform/graphics/cocoa/WebGLLayer.mm:
     23        (-[WebGLLayer initWithGraphicsContext3D:]):
     24        (-[WebGLLayer copyImageSnapshotWithColorSpace:]):
     25        (-[WebGLLayer display]):
     26        (-[WebGLLayer allocateIOSurfaceBackingStoreWithSize:usingAlpha:]):
     27        * platform/graphics/cocoa/WebGPULayer.mm:
     28        (-[WebGPULayer initWithGPUDevice:]):
     29        * platform/graphics/metal/GPUCommandQueueMetal.mm:
     30        * platform/mac/PasteboardMac.mm:
     31        * platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp:
     32        * platform/network/ResourceRequestBase.cpp:
     33        * rendering/updating/RenderTreeBuilderBlockFlow.cpp:
     34        * rendering/updating/RenderTreeBuilderInline.cpp:
     35
    1362018-08-29  Daniel Bates  <dabates@apple.com>
    237
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/cache/WorkerCacheStorageConnection.cpp

    r228924 r236118  
    3030#include "CacheQueryOptions.h"
    3131#include "CacheStorageProvider.h"
     32#include "ClientOrigin.h"
    3233#include "Document.h"
    3334#include "Page.h"
     
    3637#include "WorkerRunLoop.h"
    3738#include "WorkerThread.h"
    38 
    3939
    4040namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/mediastream/RTCController.cpp

    r226804 r236118  
    2828#if ENABLE(WEB_RTC)
    2929
     30#include "Document.h"
    3031#include "LibWebRTCProvider.h"
    3132#include "RTCPeerConnection.h"
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp

    r235061 r236118  
    2929#if ENABLE(PAYMENT_REQUEST)
    3030
     31#include "EventNames.h"
    3132#include "PaymentRequest.h"
    3233
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/Modules/webvr/VRDisplay.cpp

    r233846 r236118  
    3030#include "Chrome.h"
    3131#include "DOMException.h"
     32#include "DOMWindow.h"
    3233#include "EventNames.h"
    3334#include "Page.h"
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/PAL/pal/crypto/gcrypt/Utilities.h

    r222497 r236118  
    2929#include <gcrypt.h>
    3030#include <wtf/Assertions.h>
     31#include <wtf/Optional.h>
    3132
    3233namespace PAL {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/SourcesCocoa.txt

    r235299 r236118  
    390390platform/ios/PlaybackSessionInterfaceAVKit.mm @no-unify
    391391platform/ios/QuickLook.mm
    392 platform/ios/QuickLookSoftLink.mm
     392platform/ios/QuickLookSoftLink.mm @no-unify
    393393platform/ios/RemoteCommandListenerIOS.mm
    394394platform/ios/ScrollAnimatorIOS.mm
     
    400400platform/ios/ThemeIOS.mm @no-unify
    401401platform/ios/TileControllerMemoryHandlerIOS.cpp
    402 platform/ios/UserAgentIOS.mm
     402platform/ios/UserAgentIOS.mm @no-unify
    403403platform/ios/ValidationBubbleIOS.mm @no-unify
    404404platform/ios/VideoFullscreenInterfaceAVKit.mm @no-unify
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/SourcesGTK.txt

    r232796 r236118  
    6262platform/geoclue/GeolocationProviderGeoclue.cpp
    6363
    64 platform/graphics/GLContext.cpp
     64platform/graphics/GLContext.cpp @no-unify
    6565platform/graphics/GraphicsContext3DPrivate.cpp
    6666
    67 platform/graphics/cairo/BackingStoreBackendCairoX11.cpp
     67platform/graphics/cairo/BackingStoreBackendCairoX11.cpp @no-unify
    6868
    6969platform/graphics/egl/GLContextEGL.cpp
    7070platform/graphics/egl/GLContextEGLWayland.cpp @no-unify
    71 platform/graphics/egl/GLContextEGLX11.cpp
     71platform/graphics/egl/GLContextEGLX11.cpp @no-unify
    7272
    7373platform/graphics/glx/GLContextGLX.cpp
     
    8383platform/graphics/wayland/PlatformDisplayWayland.cpp
    8484
    85 platform/graphics/x11/PlatformDisplayX11.cpp
    86 platform/graphics/x11/XErrorTrapper.cpp
    87 platform/graphics/x11/XUniqueResource.cpp
     85platform/graphics/x11/PlatformDisplayX11.cpp @no-unify
     86platform/graphics/x11/XErrorTrapper.cpp @no-unify
     87platform/graphics/x11/XUniqueResource.cpp @no-unify
    8888
    8989platform/gtk/DragDataGtk.cpp
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/crypto/algorithms/CryptoAlgorithmECDSA.cpp

    r233898 r236118  
    3737namespace WebCore {
    3838
     39namespace CryptoAlgorithmECDSAInternal {
    3940static const char* const ALG256 = "ES256";
    4041static const char* const ALG384 = "ES384";
     
    4344static const char* const P384 = "P-384";
    4445static const char* const P521 = "P-521";
     46}
    4547
    4648Ref<CryptoAlgorithm> CryptoAlgorithmECDSA::create()
     
    103105void CryptoAlgorithmECDSA::importKey(CryptoKeyFormat format, KeyData&& data, const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyCallback&& callback, ExceptionCallback&& exceptionCallback)
    104106{
     107    using namespace CryptoAlgorithmECDSAInternal;
    105108    const auto& ecParameters = downcast<CryptoAlgorithmEcKeyParams>(parameters);
    106109
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/crypto/gcrypt/GCryptUtilities.h

    r233247 r236118  
    3535#include <pal/crypto/gcrypt/Handle.h>
    3636#include <pal/crypto/gcrypt/Utilities.h>
     37#include <wtf/Optional.h>
    3738
    3839namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/dom/Document.h

    r235070 r236118  
    642642    WEBCORE_EXPORT DocumentLoader* loader() const;
    643643
    644     WEBCORE_EXPORT ExceptionOr<RefPtr<WindowProxy>> openForBindings(DOMWindow& activeWindow, DOMWindow& firstWindow, const String& url, const AtomicString& name, const String& features);
     644    WEBCORE_EXPORT ExceptionOr<RefPtr<WindowProxy>> openForBindings(DOMWindow& activeWindow, DOMWindow& firstDOMWindow, const String& url, const AtomicString& name, const String& features);
    645645    WEBCORE_EXPORT ExceptionOr<Document&> openForBindings(Document* responsibleDocument, const String& type, const String& replace);
    646646
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/html/parser/HTMLTreeBuilder.cpp

    r233572 r236118  
    3333#include "HTMLFormControlElement.h"
    3434#include "HTMLFormElement.h"
     35#include "HTMLInputElement.h"
    3536#include "HTMLOptGroupElement.h"
    3637#include "HTMLOptionElement.h"
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/loader/appcache/ApplicationCacheResourceLoader.h

    r229675 r236118  
    2626#pragma once
    2727
     28#include "ApplicationCacheResource.h"
    2829#include "CachedRawResource.h"
    2930#include "CachedRawResourceClient.h"
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/page/AlternativeTextClient.h

    r223728 r236118  
    2929#include <wtf/Vector.h>
    3030#include <wtf/text/WTFString.h>
    31 
    32 #if PLATFORM(MAC)
    33 // Some platforms provide UI for suggesting alternative dictation text.
    34 #define USE_DICTATION_ALTERNATIVES 1
    35 #endif
    3631
    3732namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/Pasteboard.h

    r229503 r236118  
    337337extern const char* const WebArchivePboardType;
    338338extern const char* const WebURLNamePboardType;
     339extern const char* const WebURLsWithTitlesPboardType;
    339340#endif
    340341
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp

    r234743 r236118  
    3434#include <CoreAudio/AudioHardware.h>
    3535#include <wtf/MainThread.h>
     36#include <wtf/text/WTFString.h>
    3637
    3738namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp

    r233512 r236118  
    3131#include "DisplayRefreshMonitorClient.h"
    3232#include "DisplayRefreshMonitorManager.h"
     33#include "Logging.h"
    3334
    3435#if PLATFORM(IOS)
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontFamilySpecificationNull.cpp

    r218421 r236118  
    2828
    2929#include "FontSelector.h"
     30#include <wtf/text/AtomicStringHash.h>
    3031
    3132namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontGenericFamilies.h

    r167811 r236118  
    3030#include <wtf/HashMap.h>
    3131#include <wtf/text/AtomicString.h>
     32#include <wtf/text/AtomicStringHash.h>
    3233
    3334namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/FontTaggedSettings.cpp

    r220503 r236118  
    2828#include "FontTaggedSettings.h"
    2929
     30#include <wtf/text/AtomicStringHash.h>
    3031#include <wtf/text/TextStream.h>
    31 
    32 #include <wtf/text/AtomicStringHash.h>
    3332
    3433namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cairo/FontCairo.cpp

    r228821 r236118  
    3535
    3636#include "AffineTransform.h"
     37#include "CairoOperations.h"
    3738#include "CairoUtilities.h"
    3839#include "Font.h"
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cocoa/WebGLLayer.mm

    r232501 r236118  
    4343#endif
    4444
    45 using namespace WebCore;
    46 
    4745@implementation WebGLLayer
    4846
    4947@synthesize context=_context;
    5048
    51 -(id)initWithGraphicsContext3D:(GraphicsContext3D*)context
     49-(id)initWithGraphicsContext3D:(WebCore::GraphicsContext3D*)context
    5250{
    5351    _context = context;
     
    8785#endif
    8886
    89 -(CGImageRef)copyImageSnapshotWithColorSpace:(CGColorSpaceRef)colorSpace
     87- (CGImageRef)copyImageSnapshotWithColorSpace:(CGColorSpaceRef)colorSpace
    9088{
    9189    if (!_context)
     
    9795    RetainPtr<CGColorSpaceRef> imageColorSpace = colorSpace;
    9896    if (!imageColorSpace)
    99         imageColorSpace = sRGBColorSpaceRef();
     97        imageColorSpace = WebCore::sRGBColorSpaceRef();
    10098
    10199    CGRect layerBounds = CGRectIntegral([self bounds]);
     
    142140
    143141    _context->markLayerComposited();
    144     PlatformCALayer* layer = PlatformCALayer::platformCALayer((__bridge void*)self);
     142    WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self);
    145143    if (layer && layer->owner())
    146144        layer->owner()->platformCALayerLayerDidDisplay(layer);
     
    148146
    149147#if USE(OPENGL)
    150 - (void)allocateIOSurfaceBackingStoreWithSize:(IntSize)size usingAlpha:(BOOL)usingAlpha
     148- (void)allocateIOSurfaceBackingStoreWithSize:(WebCore::IntSize)size usingAlpha:(BOOL)usingAlpha
    151149{
    152150    _bufferSize = size;
    153151    _usingAlpha = usingAlpha;
    154     _contentsBuffer = WebCore::IOSurface::create(size, sRGBColorSpaceRef());
    155     _drawingBuffer = WebCore::IOSurface::create(size, sRGBColorSpaceRef());
    156     _spareBuffer = WebCore::IOSurface::create(size, sRGBColorSpaceRef());
     152    _contentsBuffer = WebCore::IOSurface::create(size, WebCore::sRGBColorSpaceRef());
     153    _drawingBuffer = WebCore::IOSurface::create(size, WebCore::sRGBColorSpaceRef());
     154    _spareBuffer = WebCore::IOSurface::create(size, WebCore::sRGBColorSpaceRef());
    157155
    158156    ASSERT(_contentsBuffer);
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm

    r219050 r236118  
    3535#import <wtf/RetainPtr.h>
    3636
    37 using namespace WebCore;
    38 
    3937@implementation WebGPULayer
    4038
    4139@synthesize context=_context;
    4240
    43 - (id)initWithGPUDevice:(GPUDevice*)context
     41- (id)initWithGPUDevice:(WebCore::GPUDevice*)context
    4442{
    4543    self = [super init];
     
    5149#if PLATFORM(MAC)
    5250    self.contentsScale = _devicePixelRatio;
    53     self.colorspace = sRGBColorSpaceRef();
     51    self.colorspace = WebCore::sRGBColorSpaceRef();
    5452#endif
    5553    return self;
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/graphics/metal/GPUCommandQueueMetal.mm

    r234258 r236118  
    3232#import "Logging.h"
    3333#import <Metal/Metal.h>
     34#import <wtf/text/WTFString.h>
    3435
    3536namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/mac/PasteboardMac.mm

    r233753 r236118  
    5353const char* const WebArchivePboardType = "Apple Web Archive pasteboard type";
    5454const char* const WebURLNamePboardType = "public.url-name";
     55const char* const WebURLsWithTitlesPboardType = "WebURLsWithTitlesPboardType";
    5556
    5657const char WebSmartPastePboardType[] = "NeXT smart paste pasteboard type";
    5758const char WebURLPboardType[] = "public.url";
    58 const char WebURLsWithTitlesPboardType[] = "WebURLsWithTitlesPboardType";
    5959
    6060static const Vector<String> writableTypesForURL()
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp

    r234146 r236118  
    2929#if ENABLE(MEDIA_STREAM)
    3030
     31#include "CoreVideoSoftLink.h"
    3132#include "Logging.h"
    3233#include <wtf/Algorithms.h>
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/network/ResourceRequestBase.cpp

    r233668 r236118  
    3030#include "PublicSuffix.h"
    3131#include "ResourceRequest.h"
     32#include "ResourceResponse.h"
    3233#include "SecurityPolicy.h"
    3334#include <wtf/PointerComparison.h>
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/network/soup/SoupNetworkSession.h

    r231876 r236118  
    2727#define SoupNetworkSession_h
    2828
     29#include <gio/gio.h>
    2930#include <glib-object.h>
    3031#include <pal/SessionID.h>
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/text/TextCodecUTF8.cpp

    r225618 r236118  
    3030#include <wtf/text/CString.h>
    3131#include <wtf/text/StringBuffer.h>
     32#include <wtf/text/WTFString.h>
    3233#include <wtf/unicode/CharacterNames.h>
    3334
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/platform/text/TextCodecUTF8.h

    r225618 r236118  
    2727
    2828#include "TextCodec.h"
     29#include <unicode/utf8.h>
    2930#include <wtf/text/LChar.h>
    3031
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderBlockFlow.cpp

    r228938 r236118  
    2828
    2929#include "RenderMultiColumnFlow.h"
     30#include "RenderTreeBuilderBlock.h"
     31#include "RenderTreeBuilderMultiColumn.h"
    3032
    3133namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderFormControls.cpp

    r228938 r236118  
    2929#include "RenderButton.h"
    3030#include "RenderMenuList.h"
     31#include "RenderTreeBuilderBlock.h"
    3132
    3233namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp

    r232178 r236118  
    3131#include "RenderInline.h"
    3232#include "RenderTable.h"
     33#include "RenderTreeBuilderMultiColumn.h"
     34#include "RenderTreeBuilderTable.h"
    3335
    3436namespace WebCore {
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeBuilderRuby.cpp

    r232178 r236118  
    2727#include "RenderTreeBuilderRuby.h"
    2828
     29#include "RenderAncestorIterator.h"
    2930#include "RenderRuby.h"
    3031#include "RenderRubyBase.h"
  • releases/WebKitGTK/webkit-2.22/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp

    r234109 r236118  
    4242#include "RenderFullScreen.h"
    4343#include "RenderInline.h"
     44#include "RenderMultiColumnFlow.h"
     45#include "RenderMultiColumnSet.h"
    4446#include "RenderTreeUpdaterGeneratedContent.h"
    4547#include "RuntimeEnabledFeatures.h"
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/ChangeLog

    r236107 r236118  
     12018-08-30  Tim Horton  <timothy_horton@apple.com>
     2
     3        Bundle unified sources more tightly in projects with deep directory structures
     4        https://bugs.webkit.org/show_bug.cgi?id=189009
     5
     6        Reviewed by Simon Fraser.
     7
     8        Fix a variety of unification errors due to reshuffling the bundles.
     9
     10        * Shared/APIWebArchive.mm:
     11        * Shared/APIWebArchiveResource.mm:
     12        * Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm:
     13        * Shared/Plugins/Netscape/mac/PluginInformationMac.mm:
     14        * SourcesCocoa.txt:
     15        * SourcesGTK.txt:
     16        * UIProcess/API/APIAutomationSessionClient.h:
     17        (API::AutomationSessionClient::sessionIdentifier const):
     18        (API::AutomationSessionClient::messageOfCurrentJavaScriptDialogOnPage):
     19        (API::AutomationSessionClient::setUserInputForCurrentJavaScriptPromptOnPage):
     20        * UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm:
     21        (-[WKCustomProtocolLoader initWithLegacyCustomProtocolManagerProxy:customProtocolID:request:]):
     22        (-[WKCustomProtocolLoader connection:didFailWithError:]):
     23        (-[WKCustomProtocolLoader connection:didReceiveResponse:]):
     24        * UIProcess/Plugins/PluginProcessProxy.cpp:
     25        (WebKit::generatePluginProcessCallbackID):
     26        (WebKit::PluginProcessProxy::fetchWebsiteData):
     27        (WebKit::PluginProcessProxy::deleteWebsiteData):
     28        (WebKit::PluginProcessProxy::deleteWebsiteDataForHostNames):
     29        (WebKit::generateCallbackID): Deleted.
     30        * UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm:
     31        (-[WKScrollingNodeScrollViewDelegate scrollViewWillEndDragging:withVelocity:targetContentOffset:]):
     32        * UIProcess/Storage/StorageProcessProxy.cpp:
     33        (WebKit::generateStorageProcessCallbackID):
     34        (WebKit::StorageProcessProxy::fetchWebsiteData):
     35        (WebKit::StorageProcessProxy::deleteWebsiteData):
     36        (WebKit::StorageProcessProxy::deleteWebsiteDataForOrigins):
     37        (WebKit::generateCallbackID): Deleted.
     38        * WebKit.xcodeproj/project.pbxproj:
     39        * WebProcess/Plugins/PDF/PDFPlugin.mm:
     40        (-[WKPDFPluginAccessibilityObject accessibilityPerformAction:]):
     41        (-[WKPDFPluginAccessibilityObject accessibilityFocusedUIElement]):
     42        (-[WKPDFPluginAccessibilityObject accessibilityAssociatedControlForAnnotation:]):
     43        (-[WKPDFPluginAccessibilityObject accessibilityHitTest:]):
     44        (-[WKPDFLayerControllerDelegate updateScrollPosition:]):
     45        (WebKit::PDFPlugin::updateCursor):
     46        (WebKit::coreCursor):
     47        (appendValuesInPDFNameSubtreeToVector): Deleted.
     48        (getAllValuesInPDFNameTree): Deleted.
     49        (getAllScriptsInPDFDocument): Deleted.
     50
    1512018-08-27  Alex Christensen  <achristensen@webkit.org>
    252
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/APIWebArchive.mm

    r235066 r236118  
    3535#include <wtf/RetainPtr.h>
    3636
     37namespace API {
    3738using namespace WebCore;
    38 
    39 namespace API {
    4039
    4140Ref<WebArchive> WebArchive::create(WebArchiveResource* mainResource, RefPtr<API::Array>&& subresources, RefPtr<API::Array>&& subframeArchives)
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/APIWebArchiveResource.mm

    r235066 r236118  
    3434#include <wtf/RetainPtr.h>
    3535
     36namespace API {
    3637using namespace WebCore;
    37 
    38 namespace API {
    3938
    4039Ref<WebArchiveResource> WebArchiveResource::create(API::Data* data, const String& URL, const String& MIMEType, const String& textEncoding)
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm

    r234278 r236118  
    3535#import <wtf/spi/cf/CFBundleSPI.h>
    3636
     37namespace WebKit {
    3738using namespace WebCore;
    38 
    39 namespace WebKit {
    4039
    4140static bool getPluginArchitecture(CFBundleRef bundle, PluginModuleInfo& plugin)
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/Shared/Plugins/Netscape/mac/PluginInformationMac.mm

    r204462 r236118  
    3535#import <WebCore/PluginBlacklist.h>
    3636
     37namespace WebKit {
    3738using namespace WebCore;
    38 
    39 namespace WebKit {
    4039
    4140void getPlatformPluginModuleInformation(const PluginModuleInfo& plugin, API::Dictionary::MapType& map)
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/SourcesCocoa.txt

    r236047 r236118  
    300300UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm
    301301
    302 UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm
    303 
    304 UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm
     302UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm @no-unify
     303
     304UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm @no-unify
    305305
    306306UIProcess/Authentication/cocoa/AuthenticationChallengeProxyCocoa.mm
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/SourcesGTK.txt

    r235285 r236118  
    208208UIProcess/linux/MemoryPressureMonitor.cpp
    209209
    210 UIProcess/Plugins/gtk/PluginInfoCache.cpp
    211 
    212 UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp
     210UIProcess/Plugins/gtk/PluginInfoCache.cpp @no-unify
     211
     212UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp @no-unify
    213213UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp @no-unify
    214214
     
    217217UIProcess/WebsiteData/unix/WebsiteDataStoreUnix.cpp
    218218
    219 UIProcess/cairo/BackingStoreCairo.cpp
     219UIProcess/cairo/BackingStoreCairo.cpp @no-unify
    220220
    221221UIProcess/glib/RemoteInspectorClient.cpp
     
    230230UIProcess/gtk/GestureController.cpp
    231231UIProcess/gtk/HardwareAccelerationManager.cpp
    232 UIProcess/gtk/InputMethodFilter.cpp
     232UIProcess/gtk/InputMethodFilter.cpp @no-unify
    233233UIProcess/gtk/KeyBindingTranslator.cpp
    234234UIProcess/gtk/RemoteWebInspectorProxyGtk.cpp @no-unify
    235235UIProcess/gtk/TextCheckerGtk.cpp @no-unify
    236236UIProcess/gtk/WaylandCompositor.cpp @no-unify
    237 UIProcess/gtk/WebColorPickerGtk.cpp
     237UIProcess/gtk/WebColorPickerGtk.cpp @no-unify
    238238UIProcess/gtk/WebContextMenuProxyGtk.cpp
    239239UIProcess/gtk/WebInspectorProxyGtk.cpp
    240240UIProcess/gtk/WebKitInspectorWindow.cpp
    241 UIProcess/gtk/WebPageProxyGtk.cpp
     241UIProcess/gtk/WebPageProxyGtk.cpp @no-unify
    242242UIProcess/gtk/WebPasteboardProxyGtk.cpp
    243243UIProcess/gtk/WebPopupMenuProxyGtk.cpp
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/API/APIAutomationSessionClient.h

    r232150 r236118  
    5252    virtual ~AutomationSessionClient() { }
    5353
    54     virtual String sessionIdentifier() const { return String(); }
     54    virtual WTF::String sessionIdentifier() const { return WTF::String(); }
    5555    virtual void didDisconnectFromRemote(WebKit::WebAutomationSession&) { }
    5656    virtual void requestNewPageWithOptions(WebKit::WebAutomationSession&, AutomationSessionBrowsingContextOptions, CompletionHandler<void(WebKit::WebPageProxy*)>&& completionHandler) { completionHandler(nullptr); }
     
    6262    virtual void dismissCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { }
    6363    virtual void acceptCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { }
    64     virtual String messageOfCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { return String(); }
    65     virtual void setUserInputForCurrentJavaScriptPromptOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&, const String&) { }
     64    virtual WTF::String messageOfCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { return WTF::String(); }
     65    virtual void setUserInputForCurrentJavaScriptPromptOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&, const WTF::String&) { }
    6666    virtual std::optional<JavaScriptDialogType> typeOfCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { return std::nullopt; }
    6767};
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm

    r233668 r236118  
    3333#import <WebCore/ResourceResponse.h>
    3434
    35 using namespace WebCore;
    36 using namespace WebKit;
    37 
    3835@interface WKCustomProtocolLoader : NSObject <NSURLConnectionDelegate> {
    3936@private
    40     LegacyCustomProtocolManagerProxy* _customProtocolManagerProxy;
     37    WebKit::LegacyCustomProtocolManagerProxy* _customProtocolManagerProxy;
    4138    uint64_t _customProtocolID;
    4239    NSURLCacheStoragePolicy _storagePolicy;
    4340    NSURLConnection *_urlConnection;
    4441}
    45 - (id)initWithLegacyCustomProtocolManagerProxy:(LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request;
     42- (id)initWithLegacyCustomProtocolManagerProxy:(WebKit::LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request;
    4643- (void)customProtocolManagerProxyDestroyed;
    4744@end
     
    4946@implementation WKCustomProtocolLoader
    5047
    51 - (id)initWithLegacyCustomProtocolManagerProxy:(LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request
     48- (id)initWithLegacyCustomProtocolManagerProxy:(WebKit::LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request
    5249{
    5350    self = [super init];
     
    8683- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
    8784{
    88     ResourceError coreError(error);
     85    WebCore::ResourceError coreError(error);
    8986    _customProtocolManagerProxy->didFailWithError(_customProtocolID, coreError);
    9087    _customProtocolManagerProxy->stopLoading(_customProtocolID);
     
    10097- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
    10198{
    102     ResourceResponse coreResponse(response);
     99    WebCore::ResourceResponse coreResponse(response);
    103100    _customProtocolManagerProxy->didReceiveResponse(_customProtocolID, coreResponse, _storagePolicy);
    104101}
     
    128125
    129126namespace WebKit {
     127using namespace WebCore;
    130128
    131129void LegacyCustomProtocolManagerClient::startLoading(LegacyCustomProtocolManagerProxy& manager, uint64_t customProtocolID, const ResourceRequest& coreRequest)
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp

    r236047 r236118  
    4949static const Seconds snapshottingShutdownTimeout { 15_s };
    5050
    51 static uint64_t generateCallbackID()
     51static uint64_t generatePluginProcessCallbackID()
    5252{
    5353    static uint64_t callbackID;
     
    115115void PluginProcessProxy::fetchWebsiteData(CompletionHandler<void (Vector<String>)>&& completionHandler)
    116116{
    117     uint64_t callbackID = generateCallbackID();
     117    uint64_t callbackID = generatePluginProcessCallbackID();
    118118    m_pendingFetchWebsiteDataCallbacks.set(callbackID, WTFMove(completionHandler));
    119119
     
    128128void PluginProcessProxy::deleteWebsiteData(WallTime modifiedSince, CompletionHandler<void ()>&& completionHandler)
    129129{
    130     uint64_t callbackID = generateCallbackID();
     130    uint64_t callbackID = generatePluginProcessCallbackID();
    131131    m_pendingDeleteWebsiteDataCallbacks.set(callbackID, WTFMove(completionHandler));
    132132
     
    141141void PluginProcessProxy::deleteWebsiteDataForHostNames(const Vector<String>& hostNames, CompletionHandler<void ()>&& completionHandler)
    142142{
    143     uint64_t callbackID = generateCallbackID();
     143    uint64_t callbackID = generatePluginProcessCallbackID();
    144144    m_pendingDeleteWebsiteDataForHostNamesCallbacks.set(callbackID, WTFMove(completionHandler));
    145145
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm

    r228264 r236118  
    4444#endif
    4545
    46 using namespace WebCore;
    47 
    4846@implementation WKScrollingNodeScrollViewDelegate
    4947
     
    8179    if (!_scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsets().isEmpty()) {
    8280        unsigned index;
    83         float potentialSnapPosition = closestSnapOffset(_scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsets(), _scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsetRanges(), horizontalTarget, velocity.x, index);
     81        float potentialSnapPosition = WebCore::closestSnapOffset(_scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsets(), _scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsetRanges(), horizontalTarget, velocity.x, index);
    8482        _scrollingTreeNodeDelegate->scrollingNode().setCurrentHorizontalSnapPointIndex(index);
    8583        if (horizontalTarget >= 0 && horizontalTarget <= scrollView.contentSize.width)
     
    8987    if (!_scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsets().isEmpty()) {
    9088        unsigned index;
    91         float potentialSnapPosition = closestSnapOffset(_scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsets(), _scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsetRanges(), verticalTarget, velocity.y, index);
     89        float potentialSnapPosition = WebCore::closestSnapOffset(_scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsets(), _scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsetRanges(), verticalTarget, velocity.y, index);
    9290        _scrollingTreeNodeDelegate->scrollingNode().setCurrentVerticalSnapPointIndex(index);
    9391        if (verticalTarget >= 0 && verticalTarget <= scrollView.contentSize.height)
     
    123121
    124122namespace WebKit {
     123using namespace WebCore;
    125124
    126125ScrollingTreeScrollingNodeDelegateIOS::ScrollingTreeScrollingNodeDelegateIOS(ScrollingTreeScrollingNode& scrollingNode)
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/Storage/StorageProcessProxy.cpp

    r236047 r236118  
    3838using namespace WebCore;
    3939
    40 static uint64_t generateCallbackID()
     40static uint64_t generateStorageProcessCallbackID()
    4141{
    4242    static uint64_t callbackID;
     
    106106    ASSERT(canSendMessage());
    107107
    108     uint64_t callbackID = generateCallbackID();
     108    uint64_t callbackID = generateStorageProcessCallbackID();
    109109    m_pendingFetchWebsiteDataCallbacks.add(callbackID, WTFMove(completionHandler));
    110110
     
    114114void StorageProcessProxy::deleteWebsiteData(PAL::SessionID sessionID, OptionSet<WebsiteDataType> dataTypes, WallTime modifiedSince, CompletionHandler<void ()>&& completionHandler)
    115115{
    116     auto callbackID = generateCallbackID();
     116    auto callbackID = generateStorageProcessCallbackID();
    117117
    118118    m_pendingDeleteWebsiteDataCallbacks.add(callbackID, WTFMove(completionHandler));
     
    124124    ASSERT(canSendMessage());
    125125
    126     uint64_t callbackID = generateCallbackID();
     126    uint64_t callbackID = generateStorageProcessCallbackID();
    127127    m_pendingDeleteWebsiteDataForOriginsCallbacks.add(callbackID, WTFMove(completionHandler));
    128128
  • releases/WebKitGTK/webkit-2.22/Source/WebKit/UIProcess/WebPageProxy.h

    r236041 r236118  
    6262#include "WebPaymentCoordinatorProxy.h"
    6363#include "WebPreferences.h"
    64 #include <WebCore/AlternativeTextClient.h> // FIXME: Needed by WebPageProxyMessages.h for DICTATION_ALTERNATIVES.
    6564#include "WebPageProxyMessages.h"
    6665#include "WebPopupMenuProxy.h"
Note: See TracChangeset for help on using the changeset viewer.