Changeset 235521 in webkit
- Timestamp:
- Aug 30, 2018, 1:31:32 PM (8 years ago)
- Location:
- trunk/Source
- Files:
-
- 56 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/Scripts/generate-unified-source-bundles.rb (modified) (1 diff)
-
WTF/wtf/Platform.h (modified) (1 diff)
-
WTF/wtf/text/StringBuffer.h (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/Modules/cache/WorkerCacheStorageConnection.cpp (modified) (2 diffs)
-
WebCore/Modules/mediastream/RTCController.cpp (modified) (1 diff)
-
WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp (modified) (1 diff)
-
WebCore/Modules/webvr/VRDisplay.cpp (modified) (1 diff)
-
WebCore/PAL/pal/crypto/gcrypt/Utilities.h (modified) (1 diff)
-
WebCore/SourcesCocoa.txt (modified) (2 diffs)
-
WebCore/SourcesGTK.txt (modified) (2 diffs)
-
WebCore/WebCore.xcodeproj/project.pbxproj (modified) (3 diffs)
-
WebCore/crypto/algorithms/CryptoAlgorithmECDSA.cpp (modified) (3 diffs)
-
WebCore/crypto/gcrypt/GCryptUtilities.h (modified) (1 diff)
-
WebCore/dom/Document.h (modified) (1 diff)
-
WebCore/html/parser/HTMLTreeBuilder.cpp (modified) (1 diff)
-
WebCore/loader/appcache/ApplicationCacheResourceLoader.h (modified) (1 diff)
-
WebCore/page/AlternativeTextClient.h (modified) (1 diff)
-
WebCore/platform/Pasteboard.h (modified) (1 diff)
-
WebCore/platform/audio/mac/AudioSessionMac.cpp (modified) (1 diff)
-
WebCore/platform/graphics/DisplayRefreshMonitor.cpp (modified) (1 diff)
-
WebCore/platform/graphics/FontFamilySpecificationNull.cpp (modified) (1 diff)
-
WebCore/platform/graphics/FontGenericFamilies.h (modified) (1 diff)
-
WebCore/platform/graphics/FontTaggedSettings.cpp (modified) (1 diff)
-
WebCore/platform/graphics/cairo/FontCairo.cpp (modified) (1 diff)
-
WebCore/platform/graphics/cocoa/WebGLLayer.mm (modified) (5 diffs)
-
WebCore/platform/graphics/cocoa/WebGPULayer.mm (modified) (2 diffs)
-
WebCore/platform/graphics/metal/GPUCommandQueueMetal.mm (modified) (1 diff)
-
WebCore/platform/mac/PasteboardMac.mm (modified) (1 diff)
-
WebCore/platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp (modified) (1 diff)
-
WebCore/platform/network/ResourceRequestBase.cpp (modified) (1 diff)
-
WebCore/platform/network/cf/FormDataStreamCFNet.cpp (modified) (2 diffs)
-
WebCore/platform/network/soup/SoupNetworkSession.h (modified) (1 diff)
-
WebCore/platform/text/TextCodecUTF8.cpp (modified) (1 diff)
-
WebCore/platform/text/TextCodecUTF8.h (modified) (1 diff)
-
WebCore/rendering/updating/RenderTreeBuilderBlockFlow.cpp (modified) (1 diff)
-
WebCore/rendering/updating/RenderTreeBuilderFormControls.cpp (modified) (1 diff)
-
WebCore/rendering/updating/RenderTreeBuilderInline.cpp (modified) (1 diff)
-
WebCore/rendering/updating/RenderTreeBuilderRuby.cpp (modified) (1 diff)
-
WebCore/rendering/updating/RenderTreeUpdater.cpp (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Shared/APIWebArchive.mm (modified) (1 diff)
-
WebKit/Shared/APIWebArchiveResource.mm (modified) (1 diff)
-
WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm (modified) (1 diff)
-
WebKit/Shared/Plugins/Netscape/mac/PluginInformationMac.mm (modified) (1 diff)
-
WebKit/SourcesCocoa.txt (modified) (1 diff)
-
WebKit/SourcesGTK.txt (modified) (3 diffs)
-
WebKit/UIProcess/API/APIAutomationSessionClient.h (modified) (2 diffs)
-
WebKit/UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm (modified) (5 diffs)
-
WebKit/UIProcess/Plugins/PluginProcessProxy.cpp (modified) (4 diffs)
-
WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm (modified) (4 diffs)
-
WebKit/UIProcess/Storage/StorageProcessProxy.cpp (modified) (4 diffs)
-
WebKit/UIProcess/WebPageProxy.h (modified) (1 diff)
-
WebKit/WebKit.xcodeproj/project.pbxproj (modified) (2 diffs)
-
WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r235473 r235521 1 2018-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 1 20 2018-08-29 David Kilzer <ddkilzer@apple.com> 2 21 -
trunk/Source/WTF/Scripts/generate-unified-source-bundles.rb
r235336 r235521 211 211 end 212 212 213 def 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 221 end 222 213 223 def ProcessFileForUnifiedSourceGeneration(sourceFile) 214 224 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}") 217 227 $bundleManagers.each_value { |x| x.flush } 218 228 $currentDirectory = path.dirname -
trunk/Source/WTF/wtf/Platform.h
r234677 r235521 1315 1315 #define HAVE_TOUCH_BAR 1 1316 1316 #define HAVE_ADVANCED_SPELL_CHECKING 1 1317 #define USE_DICTATION_ALTERNATIVES 1 1317 1318 1318 1319 #if defined(__LP64__) -
trunk/Source/WTF/wtf/text/StringBuffer.h
r231337 r235521 30 30 #define StringBuffer_h 31 31 32 #include <wtf/Assertions.h>33 32 #include <limits> 34 33 #include <unicode/utypes.h> 34 #include <wtf/Assertions.h> 35 #include <wtf/MallocPtr.h> 35 36 36 37 namespace WTF { -
trunk/Source/WebCore/ChangeLog
r235518 r235521 1 2018-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 1 36 2018-08-30 Andy Estes <aestes@apple.com> 2 37 -
trunk/Source/WebCore/Modules/cache/WorkerCacheStorageConnection.cpp
r228924 r235521 30 30 #include "CacheQueryOptions.h" 31 31 #include "CacheStorageProvider.h" 32 #include "ClientOrigin.h" 32 33 #include "Document.h" 33 34 #include "Page.h" … … 36 37 #include "WorkerRunLoop.h" 37 38 #include "WorkerThread.h" 38 39 39 40 40 namespace WebCore { -
trunk/Source/WebCore/Modules/mediastream/RTCController.cpp
r226804 r235521 28 28 #if ENABLE(WEB_RTC) 29 29 30 #include "Document.h" 30 31 #include "LibWebRTCProvider.h" 31 32 #include "RTCPeerConnection.h" -
trunk/Source/WebCore/Modules/paymentrequest/PaymentRequestUpdateEvent.cpp
r235518 r235521 29 29 #if ENABLE(PAYMENT_REQUEST) 30 30 31 #include "EventNames.h" 31 32 #include "PaymentRequest.h" 32 33 -
trunk/Source/WebCore/Modules/webvr/VRDisplay.cpp
r233846 r235521 30 30 #include "Chrome.h" 31 31 #include "DOMException.h" 32 #include "DOMWindow.h" 32 33 #include "EventNames.h" 33 34 #include "Page.h" -
trunk/Source/WebCore/PAL/pal/crypto/gcrypt/Utilities.h
r222497 r235521 29 29 #include <gcrypt.h> 30 30 #include <wtf/Assertions.h> 31 #include <wtf/Optional.h> 31 32 32 33 namespace PAL { -
trunk/Source/WebCore/SourcesCocoa.txt
r235120 r235521 390 390 platform/ios/PlaybackSessionInterfaceAVKit.mm @no-unify 391 391 platform/ios/QuickLook.mm 392 platform/ios/QuickLookSoftLink.mm 392 platform/ios/QuickLookSoftLink.mm @no-unify 393 393 platform/ios/RemoteCommandListenerIOS.mm 394 394 platform/ios/ScrollAnimatorIOS.mm … … 400 400 platform/ios/ThemeIOS.mm @no-unify 401 401 platform/ios/TileControllerMemoryHandlerIOS.cpp 402 platform/ios/UserAgentIOS.mm 402 platform/ios/UserAgentIOS.mm @no-unify 403 403 platform/ios/ValidationBubbleIOS.mm @no-unify 404 404 platform/ios/VideoFullscreenInterfaceAVKit.mm @no-unify -
trunk/Source/WebCore/SourcesGTK.txt
r232796 r235521 62 62 platform/geoclue/GeolocationProviderGeoclue.cpp 63 63 64 platform/graphics/GLContext.cpp 64 platform/graphics/GLContext.cpp @no-unify 65 65 platform/graphics/GraphicsContext3DPrivate.cpp 66 66 67 platform/graphics/cairo/BackingStoreBackendCairoX11.cpp 67 platform/graphics/cairo/BackingStoreBackendCairoX11.cpp @no-unify 68 68 69 69 platform/graphics/egl/GLContextEGL.cpp 70 70 platform/graphics/egl/GLContextEGLWayland.cpp @no-unify 71 platform/graphics/egl/GLContextEGLX11.cpp 71 platform/graphics/egl/GLContextEGLX11.cpp @no-unify 72 72 73 73 platform/graphics/glx/GLContextGLX.cpp … … 83 83 platform/graphics/wayland/PlatformDisplayWayland.cpp 84 84 85 platform/graphics/x11/PlatformDisplayX11.cpp 86 platform/graphics/x11/XErrorTrapper.cpp 87 platform/graphics/x11/XUniqueResource.cpp 85 platform/graphics/x11/PlatformDisplayX11.cpp @no-unify 86 platform/graphics/x11/XErrorTrapper.cpp @no-unify 87 platform/graphics/x11/XUniqueResource.cpp @no-unify 88 88 89 89 platform/gtk/DragDataGtk.cpp -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r235518 r235521 805 805 2D8FEBDD143E3EF70072502B /* CSSCrossfadeValue.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D8FEBDB143E3EF70072502B /* CSSCrossfadeValue.h */; }; 806 806 2D9066070BE141D400956998 /* LayoutState.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D9066050BE141D400956998 /* LayoutState.h */; settings = {ATTRIBUTES = (Private, ); }; }; 807 2D92A79A2134AD7900F493FD /* QuickLookSoftLink.mm in Sources */ = {isa = PBXBuildFile; fileRef = 443917FD1A91B2F8006E04F2 /* QuickLookSoftLink.mm */; }; 808 2D92A79D2134AF9500F493FD /* UserAgentIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = A3AF9D8320325691006CAD06 /* UserAgentIOS.mm */; }; 807 809 2D93AEE319DF5641002A86C3 /* ServicesOverlayController.h in Headers */ = {isa = PBXBuildFile; fileRef = 2D93AEE119DF5641002A86C3 /* ServicesOverlayController.h */; }; 808 810 2D97F04719DD413C001EE9C3 /* MockPageOverlayClient.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2DAAE32C19DCAF6000E002D2 /* MockPageOverlayClient.cpp */; }; … … 31460 31462 CDA29A301CBF74D400901CCF /* PlaybackSessionInterfaceAVKit.mm in Sources */, 31461 31463 CDA29A161CBDA56C00901CCF /* PlaybackSessionInterfaceMac.mm in Sources */, 31464 2D92A79A2134AD7900F493FD /* QuickLookSoftLink.mm in Sources */, 31462 31465 419242492127B93E00634FCF /* RealtimeOutgoingVideoSourceCocoa.mm in Sources */, 31463 31466 316DCB8A1E7A6996001B5F87 /* RTCIceTransport.cpp in Sources */, … … 32074 32077 2D8B92FE203D13E1009C868F /* UnifiedSource529.cpp in Sources */, 32075 32078 2D8B92FF203D13E1009C868F /* UnifiedSource530.cpp in Sources */, 32079 2D92A79D2134AF9500F493FD /* UserAgentIOS.mm in Sources */, 32076 32080 532042021F9A9F1000B81B2A /* UserAgentScriptsData.cpp in Sources */, 32077 32081 7C3B79711908757B00B47A2D /* UserMessageHandler.cpp in Sources */, -
trunk/Source/WebCore/crypto/algorithms/CryptoAlgorithmECDSA.cpp
r233898 r235521 37 37 namespace WebCore { 38 38 39 namespace CryptoAlgorithmECDSAInternal { 39 40 static const char* const ALG256 = "ES256"; 40 41 static const char* const ALG384 = "ES384"; … … 43 44 static const char* const P384 = "P-384"; 44 45 static const char* const P521 = "P-521"; 46 } 45 47 46 48 Ref<CryptoAlgorithm> CryptoAlgorithmECDSA::create() … … 103 105 void CryptoAlgorithmECDSA::importKey(CryptoKeyFormat format, KeyData&& data, const CryptoAlgorithmParameters& parameters, bool extractable, CryptoKeyUsageBitmap usages, KeyCallback&& callback, ExceptionCallback&& exceptionCallback) 104 106 { 107 using namespace CryptoAlgorithmECDSAInternal; 105 108 const auto& ecParameters = downcast<CryptoAlgorithmEcKeyParams>(parameters); 106 109 -
trunk/Source/WebCore/crypto/gcrypt/GCryptUtilities.h
r233247 r235521 35 35 #include <pal/crypto/gcrypt/Handle.h> 36 36 #include <pal/crypto/gcrypt/Utilities.h> 37 #include <wtf/Optional.h> 37 38 38 39 namespace WebCore { -
trunk/Source/WebCore/dom/Document.h
r235424 r235521 642 642 WEBCORE_EXPORT DocumentLoader* loader() const; 643 643 644 WEBCORE_EXPORT ExceptionOr<RefPtr<WindowProxy>> openForBindings(DOMWindow& activeWindow, DOMWindow& first Window, 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); 645 645 WEBCORE_EXPORT ExceptionOr<Document&> openForBindings(Document* responsibleDocument, const String& type, const String& replace); 646 646 -
trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp
r233572 r235521 33 33 #include "HTMLFormControlElement.h" 34 34 #include "HTMLFormElement.h" 35 #include "HTMLInputElement.h" 35 36 #include "HTMLOptGroupElement.h" 36 37 #include "HTMLOptionElement.h" -
trunk/Source/WebCore/loader/appcache/ApplicationCacheResourceLoader.h
r229675 r235521 26 26 #pragma once 27 27 28 #include "ApplicationCacheResource.h" 28 29 #include "CachedRawResource.h" 29 30 #include "CachedRawResourceClient.h" -
trunk/Source/WebCore/page/AlternativeTextClient.h
r223728 r235521 29 29 #include <wtf/Vector.h> 30 30 #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 135 #endif36 31 37 32 namespace WebCore { -
trunk/Source/WebCore/platform/Pasteboard.h
r235011 r235521 339 339 extern const char* const WebArchivePboardType; 340 340 extern const char* const WebURLNamePboardType; 341 extern const char* const WebURLsWithTitlesPboardType; 341 342 #endif 342 343 -
trunk/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp
r234743 r235521 34 34 #include <CoreAudio/AudioHardware.h> 35 35 #include <wtf/MainThread.h> 36 #include <wtf/text/WTFString.h> 36 37 37 38 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp
r233512 r235521 31 31 #include "DisplayRefreshMonitorClient.h" 32 32 #include "DisplayRefreshMonitorManager.h" 33 #include "Logging.h" 33 34 34 35 #if PLATFORM(IOS) -
trunk/Source/WebCore/platform/graphics/FontFamilySpecificationNull.cpp
r218421 r235521 28 28 29 29 #include "FontSelector.h" 30 #include <wtf/text/AtomicStringHash.h> 30 31 31 32 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/FontGenericFamilies.h
r167811 r235521 30 30 #include <wtf/HashMap.h> 31 31 #include <wtf/text/AtomicString.h> 32 #include <wtf/text/AtomicStringHash.h> 32 33 33 34 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/FontTaggedSettings.cpp
r220503 r235521 28 28 #include "FontTaggedSettings.h" 29 29 30 #include <wtf/text/AtomicStringHash.h> 30 31 #include <wtf/text/TextStream.h> 31 32 #include <wtf/text/AtomicStringHash.h>33 32 34 33 namespace WebCore { -
trunk/Source/WebCore/platform/graphics/cairo/FontCairo.cpp
r228821 r235521 35 35 36 36 #include "AffineTransform.h" 37 #include "CairoOperations.h" 37 38 #include "CairoUtilities.h" 38 39 #include "Font.h" -
trunk/Source/WebCore/platform/graphics/cocoa/WebGLLayer.mm
r232501 r235521 43 43 #endif 44 44 45 using namespace WebCore;46 47 45 @implementation WebGLLayer 48 46 49 47 @synthesize context=_context; 50 48 51 -(id)initWithGraphicsContext3D:( GraphicsContext3D*)context49 -(id)initWithGraphicsContext3D:(WebCore::GraphicsContext3D*)context 52 50 { 53 51 _context = context; … … 87 85 #endif 88 86 89 - (CGImageRef)copyImageSnapshotWithColorSpace:(CGColorSpaceRef)colorSpace87 - (CGImageRef)copyImageSnapshotWithColorSpace:(CGColorSpaceRef)colorSpace 90 88 { 91 89 if (!_context) … … 97 95 RetainPtr<CGColorSpaceRef> imageColorSpace = colorSpace; 98 96 if (!imageColorSpace) 99 imageColorSpace = sRGBColorSpaceRef();97 imageColorSpace = WebCore::sRGBColorSpaceRef(); 100 98 101 99 CGRect layerBounds = CGRectIntegral([self bounds]); … … 142 140 143 141 _context->markLayerComposited(); 144 PlatformCALayer* layer =PlatformCALayer::platformCALayer((__bridge void*)self);142 WebCore::PlatformCALayer* layer = WebCore::PlatformCALayer::platformCALayer((__bridge void*)self); 145 143 if (layer && layer->owner()) 146 144 layer->owner()->platformCALayerLayerDidDisplay(layer); … … 148 146 149 147 #if USE(OPENGL) 150 - (void)allocateIOSurfaceBackingStoreWithSize:( IntSize)size usingAlpha:(BOOL)usingAlpha148 - (void)allocateIOSurfaceBackingStoreWithSize:(WebCore::IntSize)size usingAlpha:(BOOL)usingAlpha 151 149 { 152 150 _bufferSize = size; 153 151 _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()); 157 155 158 156 ASSERT(_contentsBuffer); -
trunk/Source/WebCore/platform/graphics/cocoa/WebGPULayer.mm
r219050 r235521 35 35 #import <wtf/RetainPtr.h> 36 36 37 using namespace WebCore;38 39 37 @implementation WebGPULayer 40 38 41 39 @synthesize context=_context; 42 40 43 - (id)initWithGPUDevice:( GPUDevice*)context41 - (id)initWithGPUDevice:(WebCore::GPUDevice*)context 44 42 { 45 43 self = [super init]; … … 51 49 #if PLATFORM(MAC) 52 50 self.contentsScale = _devicePixelRatio; 53 self.colorspace = sRGBColorSpaceRef();51 self.colorspace = WebCore::sRGBColorSpaceRef(); 54 52 #endif 55 53 return self; -
trunk/Source/WebCore/platform/graphics/metal/GPUCommandQueueMetal.mm
r234258 r235521 32 32 #import "Logging.h" 33 33 #import <Metal/Metal.h> 34 #import <wtf/text/WTFString.h> 34 35 35 36 namespace WebCore { -
trunk/Source/WebCore/platform/mac/PasteboardMac.mm
r234930 r235521 53 53 const char* const WebArchivePboardType = "Apple Web Archive pasteboard type"; 54 54 const char* const WebURLNamePboardType = "public.url-name"; 55 const char* const WebURLsWithTitlesPboardType = "WebURLsWithTitlesPboardType"; 55 56 56 57 const char WebSmartPastePboardType[] = "NeXT smart paste pasteboard type"; 57 58 const char WebURLPboardType[] = "public.url"; 58 const char WebURLsWithTitlesPboardType[] = "WebURLsWithTitlesPboardType";59 59 60 60 static const Vector<String> writableTypesForURL() -
trunk/Source/WebCore/platform/mediastream/mac/DisplayCaptureManagerCocoa.cpp
r234146 r235521 29 29 #if ENABLE(MEDIA_STREAM) 30 30 31 #include "CoreVideoSoftLink.h" 31 32 #include "Logging.h" 32 33 #include <wtf/Algorithms.h> -
trunk/Source/WebCore/platform/network/ResourceRequestBase.cpp
r233668 r235521 30 30 #include "PublicSuffix.h" 31 31 #include "ResourceRequest.h" 32 #include "ResourceResponse.h" 32 33 #include "SecurityPolicy.h" 33 34 #include <wtf/PointerComparison.h> -
trunk/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
r235363 r235521 43 43 #include <wtf/Threading.h> 44 44 45 #if PLATFORM(IOS) && !PLATFORM(IOSMAC) 46 static const SInt32 fnfErr = -43; 47 #elif PLATFORM(MAC) 48 #include <CoreServices/CoreServices.h> 49 #endif 45 static const SInt32 fileNotFoundError = -43; 50 46 51 47 #if PLATFORM(COCOA) … … 242 238 ENOENT; 243 239 #else 244 f nfErr;240 fileNotFoundError; 245 241 #endif 246 242 return opened; -
trunk/Source/WebCore/platform/network/soup/SoupNetworkSession.h
r231876 r235521 27 27 #define SoupNetworkSession_h 28 28 29 #include <gio/gio.h> 29 30 #include <glib-object.h> 30 31 #include <pal/SessionID.h> -
trunk/Source/WebCore/platform/text/TextCodecUTF8.cpp
r225618 r235521 30 30 #include <wtf/text/CString.h> 31 31 #include <wtf/text/StringBuffer.h> 32 #include <wtf/text/WTFString.h> 32 33 #include <wtf/unicode/CharacterNames.h> 33 34 -
trunk/Source/WebCore/platform/text/TextCodecUTF8.h
r225618 r235521 27 27 28 28 #include "TextCodec.h" 29 #include <unicode/utf8.h> 29 30 #include <wtf/text/LChar.h> 30 31 -
trunk/Source/WebCore/rendering/updating/RenderTreeBuilderBlockFlow.cpp
r228938 r235521 28 28 29 29 #include "RenderMultiColumnFlow.h" 30 #include "RenderTreeBuilderBlock.h" 31 #include "RenderTreeBuilderMultiColumn.h" 30 32 31 33 namespace WebCore { -
trunk/Source/WebCore/rendering/updating/RenderTreeBuilderFormControls.cpp
r228938 r235521 29 29 #include "RenderButton.h" 30 30 #include "RenderMenuList.h" 31 #include "RenderTreeBuilderBlock.h" 31 32 32 33 namespace WebCore { -
trunk/Source/WebCore/rendering/updating/RenderTreeBuilderInline.cpp
r232178 r235521 31 31 #include "RenderInline.h" 32 32 #include "RenderTable.h" 33 #include "RenderTreeBuilderMultiColumn.h" 34 #include "RenderTreeBuilderTable.h" 33 35 34 36 namespace WebCore { -
trunk/Source/WebCore/rendering/updating/RenderTreeBuilderRuby.cpp
r232178 r235521 27 27 #include "RenderTreeBuilderRuby.h" 28 28 29 #include "RenderAncestorIterator.h" 29 30 #include "RenderRuby.h" 30 31 #include "RenderRubyBase.h" -
trunk/Source/WebCore/rendering/updating/RenderTreeUpdater.cpp
r234109 r235521 42 42 #include "RenderFullScreen.h" 43 43 #include "RenderInline.h" 44 #include "RenderMultiColumnFlow.h" 45 #include "RenderMultiColumnSet.h" 44 46 #include "RenderTreeUpdaterGeneratedContent.h" 45 47 #include "RuntimeEnabledFeatures.h" -
trunk/Source/WebKit/ChangeLog
r235520 r235521 1 2018-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 1 51 2018-08-30 Tim Horton <timothy_horton@apple.com> 2 52 -
trunk/Source/WebKit/Shared/APIWebArchive.mm
r235006 r235521 35 35 #include <wtf/RetainPtr.h> 36 36 37 namespace API { 37 38 using namespace WebCore; 38 39 namespace API {40 39 41 40 Ref<WebArchive> WebArchive::create(WebArchiveResource* mainResource, RefPtr<API::Array>&& subresources, RefPtr<API::Array>&& subframeArchives) -
trunk/Source/WebKit/Shared/APIWebArchiveResource.mm
r235006 r235521 34 34 #include <wtf/RetainPtr.h> 35 35 36 namespace API { 36 37 using namespace WebCore; 37 38 namespace API {39 38 40 39 Ref<WebArchiveResource> WebArchiveResource::create(API::Data* data, const String& URL, const String& MIMEType, const String& textEncoding) -
trunk/Source/WebKit/Shared/Plugins/Netscape/mac/NetscapePluginModuleMac.mm
r234278 r235521 35 35 #import <wtf/spi/cf/CFBundleSPI.h> 36 36 37 namespace WebKit { 37 38 using namespace WebCore; 38 39 namespace WebKit {40 39 41 40 static bool getPluginArchitecture(CFBundleRef bundle, PluginModuleInfo& plugin) -
trunk/Source/WebKit/Shared/Plugins/Netscape/mac/PluginInformationMac.mm
r204462 r235521 35 35 #import <WebCore/PluginBlacklist.h> 36 36 37 namespace WebKit { 37 38 using namespace WebCore; 38 39 namespace WebKit {40 39 41 40 void getPlatformPluginModuleInformation(const PluginModuleInfo& plugin, API::Dictionary::MapType& map) -
trunk/Source/WebKit/SourcesCocoa.txt
r235265 r235521 299 299 UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm 300 300 301 UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm 302 303 UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm 301 UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm @no-unify 302 303 UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm @no-unify 304 304 305 305 UIProcess/Authentication/cocoa/AuthenticationChallengeProxyCocoa.mm -
trunk/Source/WebKit/SourcesGTK.txt
r235098 r235521 208 208 UIProcess/linux/MemoryPressureMonitor.cpp 209 209 210 UIProcess/Plugins/gtk/PluginInfoCache.cpp 211 212 UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp 210 UIProcess/Plugins/gtk/PluginInfoCache.cpp @no-unify 211 212 UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp @no-unify 213 213 UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp @no-unify 214 214 … … 217 217 UIProcess/WebsiteData/unix/WebsiteDataStoreUnix.cpp 218 218 219 UIProcess/cairo/BackingStoreCairo.cpp 219 UIProcess/cairo/BackingStoreCairo.cpp @no-unify 220 220 221 221 UIProcess/glib/RemoteInspectorClient.cpp … … 230 230 UIProcess/gtk/GestureController.cpp 231 231 UIProcess/gtk/HardwareAccelerationManager.cpp 232 UIProcess/gtk/InputMethodFilter.cpp 232 UIProcess/gtk/InputMethodFilter.cpp @no-unify 233 233 UIProcess/gtk/KeyBindingTranslator.cpp 234 234 UIProcess/gtk/RemoteWebInspectorProxyGtk.cpp @no-unify 235 235 UIProcess/gtk/TextCheckerGtk.cpp @no-unify 236 236 UIProcess/gtk/WaylandCompositor.cpp @no-unify 237 UIProcess/gtk/WebColorPickerGtk.cpp 237 UIProcess/gtk/WebColorPickerGtk.cpp @no-unify 238 238 UIProcess/gtk/WebContextMenuProxyGtk.cpp 239 239 UIProcess/gtk/WebInspectorProxyGtk.cpp 240 240 UIProcess/gtk/WebKitInspectorWindow.cpp 241 UIProcess/gtk/WebPageProxyGtk.cpp 241 UIProcess/gtk/WebPageProxyGtk.cpp @no-unify 242 242 UIProcess/gtk/WebPasteboardProxyGtk.cpp 243 243 UIProcess/gtk/WebPopupMenuProxyGtk.cpp -
trunk/Source/WebKit/UIProcess/API/APIAutomationSessionClient.h
r232150 r235521 52 52 virtual ~AutomationSessionClient() { } 53 53 54 virtual String sessionIdentifier() const { returnString(); }54 virtual WTF::String sessionIdentifier() const { return WTF::String(); } 55 55 virtual void didDisconnectFromRemote(WebKit::WebAutomationSession&) { } 56 56 virtual void requestNewPageWithOptions(WebKit::WebAutomationSession&, AutomationSessionBrowsingContextOptions, CompletionHandler<void(WebKit::WebPageProxy*)>&& completionHandler) { completionHandler(nullptr); } … … 62 62 virtual void dismissCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { } 63 63 virtual void acceptCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { } 64 virtual String messageOfCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { returnString(); }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&) { } 66 66 virtual std::optional<JavaScriptDialogType> typeOfCurrentJavaScriptDialogOnPage(WebKit::WebAutomationSession&, WebKit::WebPageProxy&) { return std::nullopt; } 67 67 }; -
trunk/Source/WebKit/UIProcess/Cocoa/LegacyCustomProtocolManagerClient.mm
r233668 r235521 33 33 #import <WebCore/ResourceResponse.h> 34 34 35 using namespace WebCore;36 using namespace WebKit;37 38 35 @interface WKCustomProtocolLoader : NSObject <NSURLConnectionDelegate> { 39 36 @private 40 LegacyCustomProtocolManagerProxy* _customProtocolManagerProxy;37 WebKit::LegacyCustomProtocolManagerProxy* _customProtocolManagerProxy; 41 38 uint64_t _customProtocolID; 42 39 NSURLCacheStoragePolicy _storagePolicy; 43 40 NSURLConnection *_urlConnection; 44 41 } 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; 46 43 - (void)customProtocolManagerProxyDestroyed; 47 44 @end … … 49 46 @implementation WKCustomProtocolLoader 50 47 51 - (id)initWithLegacyCustomProtocolManagerProxy:( LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request48 - (id)initWithLegacyCustomProtocolManagerProxy:(WebKit::LegacyCustomProtocolManagerProxy*)customProtocolManagerProxy customProtocolID:(uint64_t)customProtocolID request:(NSURLRequest *)request 52 49 { 53 50 self = [super init]; … … 86 83 - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error 87 84 { 88 ResourceError coreError(error);85 WebCore::ResourceError coreError(error); 89 86 _customProtocolManagerProxy->didFailWithError(_customProtocolID, coreError); 90 87 _customProtocolManagerProxy->stopLoading(_customProtocolID); … … 100 97 - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response 101 98 { 102 ResourceResponse coreResponse(response);99 WebCore::ResourceResponse coreResponse(response); 103 100 _customProtocolManagerProxy->didReceiveResponse(_customProtocolID, coreResponse, _storagePolicy); 104 101 } … … 128 125 129 126 namespace WebKit { 127 using namespace WebCore; 130 128 131 129 void LegacyCustomProtocolManagerClient::startLoading(LegacyCustomProtocolManagerProxy& manager, uint64_t customProtocolID, const ResourceRequest& coreRequest) -
trunk/Source/WebKit/UIProcess/Plugins/PluginProcessProxy.cpp
r235265 r235521 49 49 static const Seconds snapshottingShutdownTimeout { 15_s }; 50 50 51 static uint64_t generate CallbackID()51 static uint64_t generatePluginProcessCallbackID() 52 52 { 53 53 static uint64_t callbackID; … … 115 115 void PluginProcessProxy::fetchWebsiteData(CompletionHandler<void (Vector<String>)>&& completionHandler) 116 116 { 117 uint64_t callbackID = generate CallbackID();117 uint64_t callbackID = generatePluginProcessCallbackID(); 118 118 m_pendingFetchWebsiteDataCallbacks.set(callbackID, WTFMove(completionHandler)); 119 119 … … 128 128 void PluginProcessProxy::deleteWebsiteData(WallTime modifiedSince, CompletionHandler<void ()>&& completionHandler) 129 129 { 130 uint64_t callbackID = generate CallbackID();130 uint64_t callbackID = generatePluginProcessCallbackID(); 131 131 m_pendingDeleteWebsiteDataCallbacks.set(callbackID, WTFMove(completionHandler)); 132 132 … … 141 141 void PluginProcessProxy::deleteWebsiteDataForHostNames(const Vector<String>& hostNames, CompletionHandler<void ()>&& completionHandler) 142 142 { 143 uint64_t callbackID = generate CallbackID();143 uint64_t callbackID = generatePluginProcessCallbackID(); 144 144 m_pendingDeleteWebsiteDataForHostNamesCallbacks.set(callbackID, WTFMove(completionHandler)); 145 145 -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm
r228264 r235521 44 44 #endif 45 45 46 using namespace WebCore;47 48 46 @implementation WKScrollingNodeScrollViewDelegate 49 47 … … 81 79 if (!_scrollingTreeNodeDelegate->scrollingNode().horizontalSnapOffsets().isEmpty()) { 82 80 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); 84 82 _scrollingTreeNodeDelegate->scrollingNode().setCurrentHorizontalSnapPointIndex(index); 85 83 if (horizontalTarget >= 0 && horizontalTarget <= scrollView.contentSize.width) … … 89 87 if (!_scrollingTreeNodeDelegate->scrollingNode().verticalSnapOffsets().isEmpty()) { 90 88 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); 92 90 _scrollingTreeNodeDelegate->scrollingNode().setCurrentVerticalSnapPointIndex(index); 93 91 if (verticalTarget >= 0 && verticalTarget <= scrollView.contentSize.height) … … 123 121 124 122 namespace WebKit { 123 using namespace WebCore; 125 124 126 125 ScrollingTreeScrollingNodeDelegateIOS::ScrollingTreeScrollingNodeDelegateIOS(ScrollingTreeScrollingNode& scrollingNode) -
trunk/Source/WebKit/UIProcess/Storage/StorageProcessProxy.cpp
r235265 r235521 38 38 using namespace WebCore; 39 39 40 static uint64_t generate CallbackID()40 static uint64_t generateStorageProcessCallbackID() 41 41 { 42 42 static uint64_t callbackID; … … 106 106 ASSERT(canSendMessage()); 107 107 108 uint64_t callbackID = generate CallbackID();108 uint64_t callbackID = generateStorageProcessCallbackID(); 109 109 m_pendingFetchWebsiteDataCallbacks.add(callbackID, WTFMove(completionHandler)); 110 110 … … 114 114 void StorageProcessProxy::deleteWebsiteData(PAL::SessionID sessionID, OptionSet<WebsiteDataType> dataTypes, WallTime modifiedSince, CompletionHandler<void ()>&& completionHandler) 115 115 { 116 auto callbackID = generate CallbackID();116 auto callbackID = generateStorageProcessCallbackID(); 117 117 118 118 m_pendingDeleteWebsiteDataCallbacks.add(callbackID, WTFMove(completionHandler)); … … 124 124 ASSERT(canSendMessage()); 125 125 126 uint64_t callbackID = generate CallbackID();126 uint64_t callbackID = generateStorageProcessCallbackID(); 127 127 m_pendingDeleteWebsiteDataForOriginsCallbacks.add(callbackID, WTFMove(completionHandler)); 128 128 -
trunk/Source/WebKit/UIProcess/WebPageProxy.h
r235489 r235521 63 63 #include "WebPaymentCoordinatorProxy.h" 64 64 #include "WebPreferences.h" 65 #include <WebCore/AlternativeTextClient.h> // FIXME: Needed by WebPageProxyMessages.h for DICTATION_ALTERNATIVES.66 65 #include "WebPageProxyMessages.h" 67 66 #include "WebPopupMenuProxy.h" -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r235489 r235521 760 760 2D92A796212B6ADA00F493FD /* NetscapePluginModule.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1A4A9C5312B816CF008FE984 /* NetscapePluginModule.cpp */; }; 761 761 2D92A797212B6ADA00F493FD /* PluginInformation.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7C3F8C8E173AF52D007B7F39 /* PluginInformation.cpp */; }; 762 2D92A79821348D8500F493FD /* WebPaymentCoordinatorProxyMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AB1F77D1D1B30A9007C9BD1 /* WebPaymentCoordinatorProxyMac.mm */; }; 763 2D92A79F2134B07E00F493FD /* WebPaymentCoordinatorProxyIOS.mm in Sources */ = {isa = PBXBuildFile; fileRef = 1AB1F77B1D1B30A9007C9BD1 /* WebPaymentCoordinatorProxyIOS.mm */; }; 762 764 2D931169212F61B200044BFE /* WKContentView.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FCB4E3D18BBE044000FCFC9 /* WKContentView.mm */; }; 763 765 2D93116A212F61B500044BFE /* WKContentViewInteraction.mm in Sources */ = {isa = PBXBuildFile; fileRef = 0FCB4E6B18BBF26A000FCFC9 /* WKContentViewInteraction.mm */; }; … … 11249 11251 7C4694C91A4B4EA100AD5845 /* WebPasteboardProxyMessageReceiver.cpp in Sources */, 11250 11252 1AB1F7961D1B3613007C9BD1 /* WebPaymentCoordinatorMessageReceiver.cpp in Sources */, 11253 2D92A79F2134B07E00F493FD /* WebPaymentCoordinatorProxyIOS.mm in Sources */, 11254 2D92A79821348D8500F493FD /* WebPaymentCoordinatorProxyMac.mm in Sources */, 11251 11255 1AB1F7981D1B3613007C9BD1 /* WebPaymentCoordinatorProxyMessageReceiver.cpp in Sources */, 11252 11256 2D92A78D212B6AB100F493FD /* WebPlatformTouchPoint.cpp in Sources */, -
trunk/Source/WebKit/WebProcess/Plugins/PDF/PDFPlugin.mm
r235365 r235521 89 89 #import <wtf/UUID.h> 90 90 91 using namespace WebCore;92 93 91 // Set overflow: hidden on the annotation container so <input> elements scrolled out of view don't show 94 92 // scrollbars on the body. We can't add annotations directly to the body, because overflow: hidden on the body … … 291 289 { 292 290 if ([action isEqualToString:NSAccessibilityShowMenuAction]) 293 _pdfPlugin->showContextMenuAtPoint( IntRect(IntPoint(), _pdfPlugin->size()).center());291 _pdfPlugin->showContextMenuAtPoint(WebCore::IntRect(WebCore::IntPoint(), _pdfPlugin->size()).center()); 294 292 } 295 293 … … 317 315 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 318 316 if (WebKit::PDFPluginAnnotation* activeAnnotation = _pdfPlugin->activeAnnotation()) { 319 if ( AXObjectCache* existingCache = _pdfPlugin->axObjectCache()) {320 if ( AccessibilityObject* object = existingCache->getOrCreate(activeAnnotation->element()))317 if (WebCore::AXObjectCache* existingCache = _pdfPlugin->axObjectCache()) { 318 if (WebCore::AccessibilityObject* object = existingCache->getOrCreate(activeAnnotation->element())) 321 319 #pragma clang diagnostic push 322 320 #pragma clang diagnostic ignored "-Wdeprecated-declarations" … … 339 337 return nil; 340 338 341 AXObjectCache* cache = _pdfPlugin->axObjectCache();339 WebCore::AXObjectCache* cache = _pdfPlugin->axObjectCache(); 342 340 if (!cache) 343 341 return nil; 344 342 345 AccessibilityObject* object = cache->getOrCreate(activeAnnotation->element());343 WebCore::AccessibilityObject* object = cache->getOrCreate(activeAnnotation->element()); 346 344 if (!object) 347 345 return nil; … … 354 352 { 355 353 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 356 point = _pdfPlugin->convertFromRootViewToPDFView( IntPoint(point));354 point = _pdfPlugin->convertFromRootViewToPDFView(WebCore::IntPoint(point)); 357 355 return [_pdfLayerController accessibilityHitTest:point]; 358 356 #else … … 422 420 - (void)updateScrollPosition:(CGPoint)newPosition 423 421 { 424 _pdfPlugin->notifyScrollPositionChanged( IntPoint(newPosition));422 _pdfPlugin->notifyScrollPositionChanged(WebCore::IntPoint(newPosition)); 425 423 } 426 424 … … 500 498 - (PDFPage *)pageNearestPoint:(NSPoint)point currentPage:(PDFPage *)currentPage; 501 499 @end 500 501 namespace WebKit { 502 using namespace WebCore; 503 using namespace HTMLNames; 502 504 503 505 static const char* postScriptMIMEType = "application/postscript"; … … 596 598 } 597 599 } 598 599 namespace WebKit {600 using namespace HTMLNames;601 600 602 601 Ref<PDFPlugin> PDFPlugin::create(WebFrame& frame) … … 1451 1450 return; 1452 1451 1453 webFrame()->page()->send(Messages::WebPageProxy::SetCursor(hitTestResult == Text ? iBeamCursor() :pointerCursor()));1452 webFrame()->page()->send(Messages::WebPageProxy::SetCursor(hitTestResult == Text ? WebCore::iBeamCursor() : WebCore::pointerCursor())); 1454 1453 m_lastHitTestResult = hitTestResult; 1455 1454 } … … 1982 1981 } 1983 1982 1984 static const Cursor& coreCursor(PDFLayerControllerCursorType type)1983 static const WebCore::Cursor& coreCursor(PDFLayerControllerCursorType type) 1985 1984 { 1986 1985 switch (type) { 1987 1986 case kPDFLayerControllerCursorTypeHand: 1988 return handCursor();1987 return WebCore::handCursor(); 1989 1988 case kPDFLayerControllerCursorTypeIBeam: 1990 return iBeamCursor();1989 return WebCore::iBeamCursor(); 1991 1990 case kPDFLayerControllerCursorTypePointer: 1992 1991 default: 1993 return pointerCursor();1992 return WebCore::pointerCursor(); 1994 1993 } 1995 1994 }
Note:
See TracChangeset
for help on using the changeset viewer.