WebKit Bugzilla
Attachment 356951 Details for
Bug 192449
: [meta][WebKit] Remove using namespace WebCore and WebKit in the global scope for unified source builds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
patch (text/plain), 154.56 KB, created by
chris fleizach
on 2018-12-10 01:07:24 PST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
chris fleizach
Created:
2018-12-10 01:07:24 PST
Size:
154.56 KB
patch
obsolete
>Index: Source/WebKit/ChangeLog >=================================================================== >--- Source/WebKit/ChangeLog (revision 239025) >+++ Source/WebKit/ChangeLog (working copy) >@@ -1,3 +1,217 @@ >+2018-12-10 Chris Fleizach <cfleizach@apple.com> >+ >+ [meta][WebKit] Remove using namespace WebCore and WebKit in the global scope for unified source builds >+ https://bugs.webkit.org/show_bug.cgi?id=192449 >+ >+ Reviewed by Darin Adler. >+ >+ * NetworkProcess/Cookies/mac/WebCookieManagerMac.mm: >+ * NetworkProcess/IndexedDB/WebIDBConnectionToClient.cpp: >+ * NetworkProcess/ServiceWorker/WebSWServerConnection.cpp: >+ * NetworkProcess/ServiceWorker/WebSWServerToContextConnection.cpp: >+ * NetworkProcess/ios/NetworkProcessIOS.mm: >+ * NetworkProcess/mac/NetworkProcessMac.mm: >+ * NetworkProcess/mac/RemoteNetworkingContext.mm: >+ * Platform/spi/ios/AccessibilitySupportSPI.h: >+ * PlatformMac.cmake: >+ * PluginProcess/PluginControllerProxy.cpp: >+ * PluginProcess/PluginProcess.cpp: >+ * PluginProcess/WebProcessConnection.cpp: >+ * Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb: >+ * Shared/API/c/cf/WKErrorCF.cpp: >+ (WKErrorCreateWithCFError): >+ (WKErrorCopyCFError): >+ * Shared/API/c/cg/WKImageCG.cpp: >+ (WKImageCreateCGImage): >+ (WKImageCreateFromCGImage): >+ * Shared/ChildProcess.cpp: >+ * Shared/ContextMenuContextData.cpp: >+ * Shared/EditorState.cpp: >+ * Shared/Plugins/NPIdentifierData.cpp: >+ * Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm: >+ * Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp: >+ * Shared/SessionState.cpp: >+ * Shared/SessionTracker.cpp: >+ * Shared/ShareableBitmap.cpp: >+ * Shared/ShareableResource.cpp: >+ * Shared/VisibleContentRectUpdateInfo.cpp: >+ * Shared/WebBackForwardListItem.cpp: >+ * Shared/WebContextMenuItemData.cpp: >+ * Shared/WebCoreArgumentCoders.cpp: >+ * Shared/WebHitTestResultData.cpp: >+ * Shared/WebImage.cpp: >+ * Shared/WebMediaSessionMetadata.cpp: >+ * Shared/WebMemorySampler.cpp: >+ * Shared/WebMouseEvent.cpp: >+ * Shared/WebRenderObject.cpp: >+ * Shared/WebSQLiteDatabaseTracker.cpp: >+ * Shared/WebWheelEvent.cpp: >+ * Shared/cf/ArgumentCodersCF.cpp: >+ * Shared/ios/WebPlatformTouchPointIOS.cpp: >+ * SourcesCocoa.txt: >+ * UIProcess/API/APIContentRuleListStore.cpp: >+ * UIProcess/API/APIHitTestResult.cpp: >+ * UIProcess/API/APINavigation.cpp: >+ * UIProcess/API/APIOpenPanelParameters.cpp: >+ * UIProcess/API/APIPageConfiguration.cpp: >+ * UIProcess/API/C/WKPage.cpp: >+ (WKPageLoadURLWithShouldOpenExternalURLsPolicy): >+ (WKPageLoadURLWithUserData): >+ (WKPageLoadURLRequestWithUserData): >+ (WKPageSetPaginationMode): >+ (WKPageGetPaginationMode): >+ (WKPageSetPageLoaderClient): >+ (WKPageSetPagePolicyClient): >+ * UIProcess/API/C/cg/WKIconDatabaseCG.cpp: >+ * UIProcess/Cocoa/WebViewImpl.h: >+ * UIProcess/Cocoa/WebViewImpl.mm: >+ * UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm: >+ * UIProcess/WebStorage/LocalStorageDatabase.cpp: >+ * UIProcess/ios/WKContentView.mm: >+ (-[WKContentView _commonInitializationWithProcessPool:configuration:]): >+ (-[WKContentView initWithFrame:processPool:configuration:webView:]): >+ (-[WKContentView dealloc]): >+ (-[WKContentView page]): >+ (-[WKContentView updateFixedClippingView:]): >+ (-[WKContentView didUpdateVisibleRect:unobscuredRect:unobscuredRectInScrollViewCoordinates:obscuredInsets:unobscuredSafeAreaInsets:inputViewBounds:scale:minimumScale:inStableState:isChangingObscuredInsetsInteractively:enclosedInScrollableAncestorView:]): >+ (-[WKContentView _updateForScreen:]): >+ (-[WKContentView _accessibilityRegisterUIProcessTokens]): >+ (-[WKContentView _createDrawingAreaProxy]): >+ (-[WKContentView _didCommitLayerTree:]): >+ (-[WKContentView _wk_pageCountForPrintFormatter:]): >+ * UIProcess/ios/WKContentViewInteraction.mm: >+ (-[WKFocusedElementInfo initWithAssistedNodeInformation:isUserInitiated:userObject:]): >+ (hasAssistedNode): >+ (-[WKContentView setupInteraction]): >+ (-[WKContentView positionInformation]): >+ (-[WKContentView _webTouchEventsRecognized:]): >+ (inflateQuad): >+ (-[WKContentView _updateTapHighlight]): >+ (-[WKContentView _showTapHighlight]): >+ (-[WKContentView _requiresKeyboardWhenFirstResponder]): >+ (-[WKContentView _displayFormNodeInputView]): >+ (-[WKContentView inputView]): >+ (-[WKContentView _actionForLongPressFromPositionInformation:]): >+ (-[WKContentView currentPositionInformation]): >+ (-[WKContentView doAfterPositionInformationUpdate:forRequest:]): >+ (-[WKContentView _currentPositionInformationIsValidForRequest:]): >+ (-[WKContentView _hasValidOutstandingPositionInformationRequest:]): >+ (-[WKContentView _currentPositionInformationIsApproximatelyValidForRequest:]): >+ (-[WKContentView gestureRecognizerShouldBegin:]): >+ (-[WKContentView hasSelectablePositionAtPoint:]): >+ (-[WKContentView pointIsNearMarkedText:]): >+ (-[WKContentView textInteractionGesture:shouldBeginAtPoint:]): >+ (-[WKContentView webSelectionRectsForSelectionRects:]): >+ (-[WKContentView _twoFingerSingleTapGestureRecognized:]): >+ (-[WKContentView _stylusSingleTapRecognized:]): >+ (-[WKContentView _singleTapCommited:]): >+ (-[WKContentView _attemptClickAtLocation:]): >+ (-[WKContentView _positionInformationDidChange:]): >+ (-[WKContentView requiresAccessoryView]): >+ (-[WKContentView supportedPasteboardTypesForCurrentSelection]): >+ (-[WKContentView _lookupForWebView:]): >+ (-[WKContentView _shareForWebView:]): >+ (-[WKContentView textStylingAtPosition:inDirection:]): >+ (-[WKContentView canPerformActionForWebView:withSender:]): >+ (-[WKContentView selectForWebView:]): >+ (-[WKContentView _accessibilityRetrieveRectsEnclosingSelectionOffset:withGranularity:]): >+ (-[WKContentView _accessibilityRetrieveRectsAtSelectionOffset:withText:completionHandler:]): >+ (toGestureType): >+ (toUIWKGestureType): >+ (toSelectionTouch): >+ (toUIWKSelectionTouch): >+ (toGestureRecognizerState): >+ (toUIGestureRecognizerState): >+ (toUIWKSelectionFlags): >+ (toWKTextGranularity): >+ (toWKSelectionDirection): >+ (selectionChangedWithGesture): >+ (selectionChangedWithTouch): >+ (-[WKContentView changeSelectionWithGestureAt:withGesture:withState:withFlags:]): >+ (-[WKContentView autocorrectionData]): >+ (-[WKContentView requestAutocorrectionRectsForString:withCompletionHandler:]): >+ (-[WKContentView _becomeFirstResponderWithSelectionMovingForward:completionHandler:]): >+ (-[WKContentView _updateAccessory]): >+ (-[WKContentView selectedTextRange]): >+ (-[WKContentView setMarkedText:selectedRange:]): >+ (coreWritingDirection): >+ (-[WKContentView closestPositionToPoint:]): >+ (-[WKContentView insertText:]): >+ (-[WKContentView textInputTraits]): >+ (-[WKContentView handleKeyWebEvent:]): >+ (-[WKContentView handleKeyWebEvent:withCompletionHandler:]): >+ (-[WKContentView isScrollableForKeyboardScrollViewAnimator:]): >+ (-[WKContentView keyboardScrollViewAnimator:distanceForIncrement:]): >+ (-[WKContentView assistedNodeInformation]): >+ (-[WKContentView assistedNodeSelectOptions]): >+ (isAssistableInputType): >+ (-[WKContentView _startAssistingNode:userIsInteracting:blurPreviousNode:changingActivityState:userObject:]): >+ (-[WKContentView _stopAssistingNode]): >+ (-[WKContentView updateCurrentAssistedNodeInformation:]): >+ (-[WKContentView presentViewControllerForCurrentAssistedNode]): >+ (-[WKContentView actionNameForFocusedFormControlView:]): >+ (-[WKContentView selectWordForReplacement]): >+ (-[WKContentView _updateChangedSelection:]): >+ (-[WKContentView _beginSuppressingSelectionAssistantForReason:]): >+ (-[WKContentView _stopSuppressingSelectionAssistantForReason:]): >+ (-[WKContentView _showPlaybackTargetPicker:fromRect:routeSharingPolicy:routingContextUID:]): >+ (-[WKContentView _showRunOpenPanel:resultListener:]): >+ (-[WKContentView _showShareSheet:completionHandler:]): >+ (-[WKContentView positionInformationForActionSheetAssistant:]): >+ (-[WKContentView updatePositionInformationForActionSheetAssistant:]): >+ (-[WKContentView _startDrag:item:]): >+ (-[WKContentView _didHandleAdditionalDragItemsRequest:]): >+ (-[WKContentView _didHandleStartDataInteractionRequest:]): >+ (dropOperationForWebCoreDragOperation): >+ (-[WKContentView dragDataForDropSession:dragDestinationAction:]): >+ (-[WKContentView _didConcludeEditDataInteraction:]): >+ (-[WKContentView _didPerformDragOperation:]): >+ (-[WKContentView _prepareToDragPromisedAttachment:]): >+ (-[WKContentView _itemsForBeginningOrAddingToSessionWithRegistrationList:stagedDragSource:]): >+ (-[WKContentView _autofillContext]): >+ (-[WKContentView _dragInteraction:itemsForAddingToSession:withTouchAtPoint:completion:]): >+ (-[WKContentView _dragInteraction:prepareForSession:completion:]): >+ (-[WKContentView dragInteraction:itemsForBeginningSession:]): >+ (-[WKContentView dragInteraction:willAnimateLiftWithAnimator:session:]): >+ (-[WKContentView dragInteraction:session:didEndWithOperation:]): >+ (-[WKContentView dragInteraction:item:willAnimateCancelWithAnimator:]): >+ (-[WKContentView dropInteraction:performDrop:]): >+ (-[WKContentView dropInteraction:sessionDidEnd:]): >+ (-[WKContentView allowsLanguageSelectionMenuForListViewController:]): >+ (-[WKContentView shouldDisplayInputContextViewForListViewController:]): >+ (-[WKContentView numericInputModeForListViewController:]): >+ (-[WKContentView textContentTypeForListViewController:]): >+ (-[WKContentView allowsDictationInputForListViewController:]): >+ (-[WKContentView _simulateLongPressActionAtLocation:]): >+ (-[WKContentView _interactionShouldBeginFromPreviewItemController:forPosition:]): >+ (-[WKContentView _presentationRectsForPreviewItemController:]): >+ * UIProcess/ios/fullscreen/WKFullScreenViewController.mm: >+ (WKFullScreenViewControllerPlaybackSessionModelClient::setInterface): >+ (WKFullScreenViewControllerVideoFullscreenModelClient::setInterface): >+ (WKFullScreenViewControllerVideoFullscreenModelClient::interface const): >+ (-[WKFullScreenViewController videoControlsManagerDidChange]): >+ (-[WKFullScreenViewController _manager]): >+ (-[WKFullScreenViewController _togglePiPAction:]): >+ * UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: >+ (-[WKFullscreenAnimationController configureInitialAndFinalStatesForTransition:]): >+ (-[WKFullScreenWindowController isFullScreen]): >+ (-[WKFullScreenWindowController enterFullScreen]): >+ (-[WKFullScreenWindowController beganEnterFullScreenWithInitialFrame:finalFrame:]): >+ (-[WKFullScreenWindowController exitFullScreen]): >+ (-[WKFullScreenWindowController beganExitFullScreenWithInitialFrame:finalFrame:]): >+ (-[WKFullScreenWindowController _completedExitFullScreen]): >+ (-[WKFullScreenWindowController webViewDidRemoveFromSuperviewWhileInFullscreen]): >+ (-[WKFullScreenWindowController _exitFullscreenImmediately]): >+ (-[WKFullScreenWindowController _manager]): >+ * UIProcess/mac/WebPageProxyMac.mm: >+ * WebKit.xcodeproj/project.pbxproj: >+ * WebProcess/Cache/WebCacheStorageConnection.cpp: >+ * WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm: >+ (mediaTimeToCurrentTime): >+ (-[WKAnimationDelegate initWithLayerID:layerTreeHost:]): >+ * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm: >+ (-[WKAccessibilityWebPageObjectBase accessibilityRootObjectWrapper]): >+ > 2018-12-09 Youenn Fablet <youenn@apple.com> > > Move capture manager from RealtimeMediaSourceCenter to capture factory >Index: Source/WebKit/NetworkProcess/Cookies/mac/WebCookieManagerMac.mm >=================================================================== >--- Source/WebKit/NetworkProcess/Cookies/mac/WebCookieManagerMac.mm (revision 239019) >+++ Source/WebKit/NetworkProcess/Cookies/mac/WebCookieManagerMac.mm (working copy) >@@ -31,10 +31,9 @@ > #import <pal/spi/cf/CFNetworkSPI.h> > #import <wtf/ProcessPrivilege.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > void WebCookieManager::platformSetHTTPCookieAcceptPolicy(HTTPCookieAcceptPolicy policy) > { > ASSERT(hasProcessPrivilege(ProcessPrivilege::CanAccessRawCookies)); >Index: Source/WebKit/NetworkProcess/IndexedDB/WebIDBConnectionToClient.cpp >=================================================================== >--- Source/WebKit/NetworkProcess/IndexedDB/WebIDBConnectionToClient.cpp (revision 239019) >+++ Source/WebKit/NetworkProcess/IndexedDB/WebIDBConnectionToClient.cpp (working copy) >@@ -41,10 +41,9 @@ > #include <WebCore/ThreadSafeDataBuffer.h> > #include <WebCore/UniqueIDBDatabaseConnection.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > Ref<WebIDBConnectionToClient> WebIDBConnectionToClient::create(NetworkConnectionToWebProcess& connection, uint64_t serverConnectionIdentifier, PAL::SessionID sessionID) > { > return adoptRef(*new WebIDBConnectionToClient(connection, serverConnectionIdentifier, sessionID)); >Index: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.cpp >=================================================================== >--- Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.cpp (revision 239019) >+++ Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerConnection.cpp (working copy) >@@ -53,11 +53,10 @@ > #include <WebCore/ServiceWorkerUpdateViaCache.h> > #include <wtf/MainThread.h> > >+namespace WebKit { > using namespace PAL; > using namespace WebCore; > >-namespace WebKit { >- > #define SWSERVERCONNECTION_RELEASE_LOG_IF_ALLOWED(fmt, ...) RELEASE_LOG_IF(m_sessionID.isAlwaysOnLoggingAllowed(), ServiceWorker, "%p - WebSWServerConnection::" fmt, this, ##__VA_ARGS__) > #define SWSERVERCONNECTION_RELEASE_LOG_ERROR_IF_ALLOWED(fmt, ...) RELEASE_LOG_ERROR_IF(m_sessionID.isAlwaysOnLoggingAllowed(), ServiceWorker, "%p - WebSWServerConnection::" fmt, this, ##__VA_ARGS__) > >Index: Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.cpp >=================================================================== >--- Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.cpp (revision 239019) >+++ Source/WebKit/NetworkProcess/ServiceWorker/WebSWServerToContextConnection.cpp (working copy) >@@ -33,10 +33,9 @@ > #include "WebSWContextManagerConnectionMessages.h" > #include <WebCore/ServiceWorkerContextData.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > WebSWServerToContextConnection::WebSWServerToContextConnection(const SecurityOriginData& securityOrigin, Ref<IPC::Connection>&& connection) > : SWServerToContextConnection(securityOrigin) > , m_ipcConnection(WTFMove(connection)) >Index: Source/WebKit/NetworkProcess/ios/NetworkProcessIOS.mm >=================================================================== >--- Source/WebKit/NetworkProcess/ios/NetworkProcessIOS.mm (revision 239019) >+++ Source/WebKit/NetworkProcess/ios/NetworkProcessIOS.mm (working copy) >@@ -41,10 +41,9 @@ > > #define ENABLE_MANUAL_NETWORK_SANDBOXING 0 > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > void NetworkProcess::initializeProcess(const ChildProcessInitializationParameters&) > { > InitWebCoreThreadSystemInterface(); >Index: Source/WebKit/NetworkProcess/mac/NetworkProcessMac.mm >=================================================================== >--- Source/WebKit/NetworkProcess/mac/NetworkProcessMac.mm (revision 239019) >+++ Source/WebKit/NetworkProcess/mac/NetworkProcessMac.mm (working copy) >@@ -47,10 +47,9 @@ > #import <wtf/MemoryPressureHandler.h> > #import <wtf/text/WTFString.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > void NetworkProcess::initializeProcess(const ChildProcessInitializationParameters&) > { > // Having a window server connection in this process would result in spin logs (<rdar://problem/13239119>). >Index: Source/WebKit/NetworkProcess/mac/RemoteNetworkingContext.mm >=================================================================== >--- Source/WebKit/NetworkProcess/mac/RemoteNetworkingContext.mm (revision 239019) >+++ Source/WebKit/NetworkProcess/mac/RemoteNetworkingContext.mm (working copy) >@@ -39,10 +39,9 @@ > #import <pal/SessionID.h> > #import <wtf/MainThread.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > void RemoteNetworkingContext::ensureWebsiteDataStoreSession(WebsiteDataStoreParameters&& parameters) > { > auto sessionID = parameters.networkSessionParameters.sessionID; >Index: Source/WebKit/PluginProcess/PluginControllerProxy.cpp >=================================================================== >--- Source/WebKit/PluginProcess/PluginControllerProxy.cpp (revision 239019) >+++ Source/WebKit/PluginProcess/PluginControllerProxy.cpp (working copy) >@@ -51,10 +51,9 @@ > #include "LayerHostingContext.h" > #endif > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > PluginControllerProxy::PluginControllerProxy(WebProcessConnection* connection, const PluginCreationParameters& creationParameters) > : m_connection(connection) > , m_pluginInstanceID(creationParameters.pluginInstanceID) >Index: Source/WebKit/PluginProcess/PluginProcess.cpp >=================================================================== >--- Source/WebKit/PluginProcess/PluginProcess.cpp (revision 239019) >+++ Source/WebKit/PluginProcess/PluginProcess.cpp (working copy) >@@ -49,10 +49,10 @@ > #include <crt_externs.h> > #endif > >+namespace WebKit { >+ > using namespace WebCore; > >-namespace WebKit { >- > NO_RETURN static void callExit(IPC::Connection*) > { > _exit(EXIT_SUCCESS); >Index: Source/WebKit/PluginProcess/WebProcessConnection.cpp >=================================================================== >--- Source/WebKit/PluginProcess/WebProcessConnection.cpp (revision 239019) >+++ Source/WebKit/PluginProcess/WebProcessConnection.cpp (working copy) >@@ -44,10 +44,9 @@ > #include <unistd.h> > #endif > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > static IPC::Connection* currentConnection; > > RefPtr<WebProcessConnection> WebProcessConnection::create(IPC::Connection::Identifier connectionIdentifier) >Index: Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb >=================================================================== >--- Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb (revision 239019) >+++ Source/WebKit/Scripts/PreferencesTemplates/WebPreferencesStoreDefaultsMap.cpp.erb (working copy) >@@ -40,10 +40,9 @@ > #include <WebCore/Settings.h> > #include <WebCore/TextEncodingRegistry.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > WebPreferencesStore::ValueMap& WebPreferencesStore::defaults() > { > static NeverDestroyed<ValueMap> defaults; >Index: Source/WebKit/Shared/API/c/cf/WKErrorCF.cpp >=================================================================== >--- Source/WebKit/Shared/API/c/cf/WKErrorCF.cpp (revision 239019) >+++ Source/WebKit/Shared/API/c/cf/WKErrorCF.cpp (working copy) >@@ -29,16 +29,14 @@ > #include "APIError.h" > #include "WKAPICast.h" > >-using namespace WebCore; >-using namespace WebKit; >- > WKErrorRef WKErrorCreateWithCFError(CFErrorRef cfError) > { >- return toAPI(&API::Error::create(ResourceError(cfError)).leakRef()); >+ return WebKit::toAPI(&API::Error::create(WebCore::ResourceError(cfError)).leakRef()); > } > > CFErrorRef WKErrorCopyCFError(CFAllocatorRef alloc, WKErrorRef error) > { >- RetainPtr<CFErrorRef> cfError = toImpl(error)->platformError().cfError(); >+ WTF::RetainPtr<CFErrorRef> cfError = WebKit::toImpl(error)->platformError().cfError(); > return cfError.leakRef(); > } >+ >Index: Source/WebKit/Shared/API/c/cg/WKImageCG.cpp >=================================================================== >--- Source/WebKit/Shared/API/c/cg/WKImageCG.cpp (revision 239019) >+++ Source/WebKit/Shared/API/c/cg/WKImageCG.cpp (working copy) >@@ -32,12 +32,9 @@ > #include <WebCore/ColorSpace.h> > #include <WebCore/GraphicsContext.h> > >-using namespace WebKit; >-using namespace WebCore; >- > CGImageRef WKImageCreateCGImage(WKImageRef imageRef) > { >- WebImage* webImage = toImpl(imageRef); >+ WebKit::WebImage* webImage = WebKit::toImpl(imageRef); > if (!webImage) > return nullptr; > >@@ -49,12 +46,13 @@ > if (!imageRef) > return nullptr; > >- IntSize imageSize(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)); >- auto webImage = WebImage::create(imageSize, toImageOptions(options)); >+ WebCore::IntSize imageSize(CGImageGetWidth(imageRef), CGImageGetHeight(imageRef)); >+ auto webImage = WebKit::WebImage::create(imageSize, WebKit::toImageOptions(options)); > > auto graphicsContext = webImage->bitmap().createGraphicsContext(); >- FloatRect rect(FloatPoint(0, 0), imageSize); >+ WebCore::FloatRect rect(WebCore::FloatPoint(0, 0), imageSize); > graphicsContext->clearRect(rect); > graphicsContext->drawNativeImage(imageRef, imageSize, rect, rect); > return toAPI(webImage.leakRef()); > } >+ >Index: Source/WebKit/Shared/ChildProcess.cpp >=================================================================== >--- Source/WebKit/Shared/ChildProcess.cpp (revision 239019) >+++ Source/WebKit/Shared/ChildProcess.cpp (working copy) >@@ -39,10 +39,9 @@ > #include <wtf/MemoryPressureHandler.h> > #endif > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > ChildProcess::ChildProcess() > : m_terminationCounter(0) > , m_terminationTimer(RunLoop::main(), this, &ChildProcess::terminationTimerFired) >Index: Source/WebKit/Shared/ContextMenuContextData.cpp >=================================================================== >--- Source/WebKit/Shared/ContextMenuContextData.cpp (revision 239019) >+++ Source/WebKit/Shared/ContextMenuContextData.cpp (working copy) >@@ -33,10 +33,9 @@ > #include <WebCore/ContextMenuContext.h> > #include <WebCore/GraphicsContext.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > ContextMenuContextData::ContextMenuContextData() > : m_type(Type::ContextMenu) > #if ENABLE(SERVICE_CONTROLS) >Index: Source/WebKit/Shared/EditorState.cpp >=================================================================== >--- Source/WebKit/Shared/EditorState.cpp (revision 239019) >+++ Source/WebKit/Shared/EditorState.cpp (working copy) >@@ -29,10 +29,9 @@ > #include "WebCoreArgumentCoders.h" > #include <wtf/text/TextStream.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > void EditorState::encode(IPC::Encoder& encoder) const > { > encoder << shouldIgnoreSelectionChanges; >Index: Source/WebKit/Shared/Plugins/NPIdentifierData.cpp >=================================================================== >--- Source/WebKit/Shared/Plugins/NPIdentifierData.cpp (revision 239019) >+++ Source/WebKit/Shared/Plugins/NPIdentifierData.cpp (working copy) >@@ -33,10 +33,9 @@ > #include "WebCoreArgumentCoders.h" > #include <WebCore/IdentifierRep.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > NPIdentifierData::NPIdentifierData() > : m_isString(false) > , m_number(0) >Index: Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm >=================================================================== >--- Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm (revision 239019) >+++ Source/WebKit/Shared/RemoteLayerTree/RemoteLayerTreePropertyApplier.mm (working copy) >@@ -77,10 +77,9 @@ > @end > #endif > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > static CGColorRef cgColorFromColor(const Color& color) > { > if (!color.isValid()) >Index: Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp >=================================================================== >--- Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp (revision 239019) >+++ Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.cpp (working copy) >@@ -38,11 +38,10 @@ > #include <wtf/text/CString.h> > #include <wtf/text/TextStream.h> > >-using namespace WebCore; >- > #if ENABLE(ASYNC_SCROLLING) > > namespace IPC { >+using namespace WebCore; > > template<> struct ArgumentCoder<ScrollingStateNode> { > static void encode(Encoder&, const ScrollingStateNode&); >Index: Source/WebKit/Shared/SessionState.cpp >=================================================================== >--- Source/WebKit/Shared/SessionState.cpp (revision 239019) >+++ Source/WebKit/Shared/SessionState.cpp (working copy) >@@ -29,10 +29,9 @@ > #include "WebCoreArgumentCoders.h" > #include <WebCore/BackForwardItemIdentifier.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > bool isValidEnum(WebCore::ShouldOpenExternalURLsPolicy policy) > { > switch (policy) { >Index: Source/WebKit/Shared/SessionTracker.cpp >=================================================================== >--- Source/WebKit/Shared/SessionTracker.cpp (revision 239019) >+++ Source/WebKit/Shared/SessionTracker.cpp (working copy) >@@ -31,10 +31,9 @@ > #include <wtf/NeverDestroyed.h> > #include <wtf/RunLoop.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > static String& identifierBase() > { > ASSERT(RunLoop::isMain()); >Index: Source/WebKit/Shared/ShareableBitmap.cpp >=================================================================== >--- Source/WebKit/Shared/ShareableBitmap.cpp (revision 239019) >+++ Source/WebKit/Shared/ShareableBitmap.cpp (working copy) >@@ -30,10 +30,9 @@ > #include "WebCoreArgumentCoders.h" > #include <WebCore/GraphicsContext.h> > >+namespace WebKit { > using namespace WebCore; >- >-namespace WebKit { >- >+ > ShareableBitmap::Handle::Handle() > { > } >Index: Source/WebKit/Shared/ShareableResource.cpp >=================================================================== >--- Source/WebKit/Shared/ShareableResource.cpp (revision 239019) >+++ Source/WebKit/Shared/ShareableResource.cpp (working copy) >@@ -31,10 +31,9 @@ > #include "ArgumentCoders.h" > #include <WebCore/SharedBuffer.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > ShareableResource::Handle::Handle() > { > } >Index: Source/WebKit/Shared/VisibleContentRectUpdateInfo.cpp >=================================================================== >--- Source/WebKit/Shared/VisibleContentRectUpdateInfo.cpp (revision 239019) >+++ Source/WebKit/Shared/VisibleContentRectUpdateInfo.cpp (working copy) >@@ -30,10 +30,9 @@ > #include <WebCore/LengthBox.h> > #include <wtf/text/TextStream.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > void VisibleContentRectUpdateInfo::encode(IPC::Encoder& encoder) const > { > encoder << m_exposedContentRect; >Index: Source/WebKit/Shared/WebBackForwardListItem.cpp >=================================================================== >--- Source/WebKit/Shared/WebBackForwardListItem.cpp (revision 239019) >+++ Source/WebKit/Shared/WebBackForwardListItem.cpp (working copy) >@@ -32,10 +32,9 @@ > #include <wtf/DebugUtilities.h> > #include <wtf/URL.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > Ref<WebBackForwardListItem> WebBackForwardListItem::create(BackForwardListItemState&& backForwardListItemState, uint64_t pageID) > { > return adoptRef(*new WebBackForwardListItem(WTFMove(backForwardListItemState), pageID)); >Index: Source/WebKit/Shared/WebContextMenuItemData.cpp >=================================================================== >--- Source/WebKit/Shared/WebContextMenuItemData.cpp (revision 239019) >+++ Source/WebKit/Shared/WebContextMenuItemData.cpp (working copy) >@@ -34,10 +34,9 @@ > #include <wtf/text/CString.h> > #include <WebCore/ContextMenu.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > WebContextMenuItemData::WebContextMenuItemData() > : m_type(WebCore::ActionType) > , m_action(WebCore::ContextMenuItemTagNoAction) >Index: Source/WebKit/Shared/WebCoreArgumentCoders.cpp >=================================================================== >--- Source/WebKit/Shared/WebCoreArgumentCoders.cpp (revision 239019) >+++ Source/WebKit/Shared/WebCoreArgumentCoders.cpp (working copy) >@@ -112,11 +112,10 @@ > #include <WebCore/MediaConstraints.h> > #endif > >+namespace IPC { > using namespace WebCore; > using namespace WebKit; > >-namespace IPC { >- > static void encodeSharedBuffer(Encoder& encoder, const SharedBuffer* buffer) > { > SharedMemory::Handle handle; >Index: Source/WebKit/Shared/WebHitTestResultData.cpp >=================================================================== >--- Source/WebKit/Shared/WebHitTestResultData.cpp (revision 239019) >+++ Source/WebKit/Shared/WebHitTestResultData.cpp (working copy) >@@ -31,10 +31,9 @@ > #include <wtf/URL.h> > #include <wtf/text/WTFString.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > WebHitTestResultData::WebHitTestResultData() > { > } >Index: Source/WebKit/Shared/WebImage.cpp >=================================================================== >--- Source/WebKit/Shared/WebImage.cpp (revision 239019) >+++ Source/WebKit/Shared/WebImage.cpp (working copy) >@@ -26,10 +26,9 @@ > #include "config.h" > #include "WebImage.h" > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > RefPtr<WebImage> WebImage::create(const IntSize& size, ImageOptions options) > { > return WebImage::create(size, options, { }); >Index: Source/WebKit/Shared/WebMediaSessionMetadata.cpp >=================================================================== >--- Source/WebKit/Shared/WebMediaSessionMetadata.cpp (revision 239019) >+++ Source/WebKit/Shared/WebMediaSessionMetadata.cpp (working copy) >@@ -28,10 +28,9 @@ > > #if ENABLE(MEDIA_SESSION) > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > Ref<WebMediaSessionMetadata> WebMediaSessionMetadata::create(const MediaSessionMetadata& metadata) > { > return adoptRef(*new WebMediaSessionMetadata(metadata)); >Index: Source/WebKit/Shared/WebMemorySampler.cpp >=================================================================== >--- Source/WebKit/Shared/WebMemorySampler.cpp (revision 239019) >+++ Source/WebKit/Shared/WebMemorySampler.cpp (working copy) >@@ -33,10 +33,9 @@ > #include <wtf/text/CString.h> > #include <wtf/text/StringBuilder.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > static const char separator = '\t'; > > static void appendSpaces(StringBuilder& string, int count) >Index: Source/WebKit/Shared/WebMouseEvent.cpp >=================================================================== >--- Source/WebKit/Shared/WebMouseEvent.cpp (revision 239019) >+++ Source/WebKit/Shared/WebMouseEvent.cpp (working copy) >@@ -28,10 +28,9 @@ > > #include "WebCoreArgumentCoders.h" > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > WebMouseEvent::WebMouseEvent() > : WebEvent() > , m_button(static_cast<uint32_t>(NoButton)) >Index: Source/WebKit/Shared/WebRenderObject.cpp >=================================================================== >--- Source/WebKit/Shared/WebRenderObject.cpp (revision 239019) >+++ Source/WebKit/Shared/WebRenderObject.cpp (working copy) >@@ -37,10 +37,9 @@ > #include <WebCore/RenderView.h> > #include <WebCore/RenderWidget.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > RefPtr<WebRenderObject> WebRenderObject::create(WebPage* page) > { > Frame* mainFrame = page->mainFrame(); >Index: Source/WebKit/Shared/WebSQLiteDatabaseTracker.cpp >=================================================================== >--- Source/WebKit/Shared/WebSQLiteDatabaseTracker.cpp (revision 239019) >+++ Source/WebKit/Shared/WebSQLiteDatabaseTracker.cpp (working copy) >@@ -33,10 +33,9 @@ > #include <WebCore/SQLiteDatabaseTracker.h> > #include <wtf/MainThread.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > WebSQLiteDatabaseTracker::WebSQLiteDatabaseTracker(NetworkProcess& process) > : m_process(process) > , m_hysteresis([this](PAL::HysteresisState state) { hysteresisUpdated(state); }) >Index: Source/WebKit/Shared/WebWheelEvent.cpp >=================================================================== >--- Source/WebKit/Shared/WebWheelEvent.cpp (revision 239019) >+++ Source/WebKit/Shared/WebWheelEvent.cpp (working copy) >@@ -28,10 +28,9 @@ > > #include "WebCoreArgumentCoders.h" > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > WebWheelEvent::WebWheelEvent(Type type, const IntPoint& position, const IntPoint& globalPosition, const FloatSize& delta, const FloatSize& wheelTicks, Granularity granularity, Modifiers modifiers, WallTime timestamp) > : WebEvent(type, modifiers, timestamp) > , m_position(position) >Index: Source/WebKit/Shared/cf/ArgumentCodersCF.cpp >=================================================================== >--- Source/WebKit/Shared/cf/ArgumentCodersCF.cpp (revision 239019) >+++ Source/WebKit/Shared/cf/ArgumentCodersCF.cpp (working copy) >@@ -63,10 +63,9 @@ > extern "C" CFDataRef SecAccessControlCopyData(SecAccessControlRef access_control); > #endif > >+namespace IPC { > using namespace WebCore; > >-namespace IPC { >- > CFTypeRef tokenNullTypeRef() > { > static CFStringRef tokenNullType = CFSTR("WKNull"); >Index: Source/WebKit/Shared/ios/WebPlatformTouchPointIOS.cpp >=================================================================== >--- Source/WebKit/Shared/ios/WebPlatformTouchPointIOS.cpp (revision 239019) >+++ Source/WebKit/Shared/ios/WebPlatformTouchPointIOS.cpp (working copy) >@@ -30,10 +30,9 @@ > > #include "WebCoreArgumentCoders.h" > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > void WebPlatformTouchPoint::encode(IPC::Encoder& encoder) const > { > encoder << m_identifier; >Index: Source/WebKit/UIProcess/API/APIContentRuleListStore.cpp >=================================================================== >--- Source/WebKit/UIProcess/API/APIContentRuleListStore.cpp (revision 239019) >+++ Source/WebKit/UIProcess/API/APIContentRuleListStore.cpp (working copy) >@@ -45,11 +45,11 @@ > #include <wtf/persistence/PersistentDecoder.h> > #include <wtf/persistence/PersistentEncoder.h> > >+ >+namespace API { > using namespace WebKit::NetworkCache; > using namespace WebCore::FileSystem; > >-namespace API { >- > ContentRuleListStore& ContentRuleListStore::legacyDefaultStore() > { > const bool legacyFilename = true; >Index: Source/WebKit/UIProcess/API/APIHitTestResult.cpp >=================================================================== >--- Source/WebKit/UIProcess/API/APIHitTestResult.cpp (revision 239019) >+++ Source/WebKit/UIProcess/API/APIHitTestResult.cpp (working copy) >@@ -20,10 +20,9 @@ > #include "config.h" > #include "APIHitTestResult.h" > >+namespace API { > using namespace WebCore; > >-namespace API { >- > Ref<HitTestResult> HitTestResult::create(const WebKit::WebHitTestResultData& hitTestResultData) > { > return adoptRef(*new HitTestResult(hitTestResultData)); >Index: Source/WebKit/UIProcess/API/APINavigation.cpp >=================================================================== >--- Source/WebKit/UIProcess/API/APINavigation.cpp (revision 239019) >+++ Source/WebKit/UIProcess/API/APINavigation.cpp (working copy) >@@ -30,11 +30,10 @@ > #include "WebNavigationState.h" > #include <wtf/DebugUtilities.h> > >+namespace API { > using namespace WebCore; > using namespace WebKit; > >-namespace API { >- > Navigation::Navigation(WebNavigationState& state) > : m_navigationID(state.generateNavigationID()) > { >Index: Source/WebKit/UIProcess/API/APIOpenPanelParameters.cpp >=================================================================== >--- Source/WebKit/UIProcess/API/APIOpenPanelParameters.cpp (revision 239019) >+++ Source/WebKit/UIProcess/API/APIOpenPanelParameters.cpp (working copy) >@@ -31,10 +31,9 @@ > #include "APIString.h" > #include <wtf/Vector.h> > >+namespace API { > using namespace WebCore; > >-namespace API { >- > Ref<OpenPanelParameters> OpenPanelParameters::create(const FileChooserSettings& settings) > { > return adoptRef(*new OpenPanelParameters(settings)); >Index: Source/WebKit/UIProcess/API/APIPageConfiguration.cpp >=================================================================== >--- Source/WebKit/UIProcess/API/APIPageConfiguration.cpp (revision 239019) >+++ Source/WebKit/UIProcess/API/APIPageConfiguration.cpp (working copy) >@@ -38,11 +38,10 @@ > #include "APIApplicationManifest.h" > #endif > >+namespace API { > using namespace WebCore; > using namespace WebKit; > >-namespace API { >- > Ref<PageConfiguration> PageConfiguration::create() > { > return adoptRef(*new PageConfiguration); >Index: Source/WebKit/UIProcess/API/C/WKPage.cpp >=================================================================== >--- Source/WebKit/UIProcess/API/C/WKPage.cpp (revision 239019) >+++ Source/WebKit/UIProcess/API/C/WKPage.cpp (working copy) >@@ -97,10 +97,10 @@ > #include "VersionChecks.h" > #endif > >+namespace API { > using namespace WebCore; > using namespace WebKit; >- >-namespace API { >+ > template<> struct ClientTraits<WKPageLoaderClientBase> { > typedef std::tuple<WKPageLoaderClientV0, WKPageLoaderClientV1, WKPageLoaderClientV2, WKPageLoaderClientV3, WKPageLoaderClientV4, WKPageLoaderClientV5, WKPageLoaderClientV6> Versions; > }; >@@ -130,9 +130,9 @@ > template<> struct ClientTraits<WKPageFindMatchesClientBase> { > typedef std::tuple<WKPageFindMatchesClientV0> Versions; > }; >+ >+} // namespace API > >-} >- > WKTypeID WKPageGetTypeID() > { > return toAPI(WebPageProxy::APIType); >@@ -160,13 +160,13 @@ > > void WKPageLoadURLWithShouldOpenExternalURLsPolicy(WKPageRef pageRef, WKURLRef URLRef, bool shouldOpenExternalURLs) > { >- ShouldOpenExternalURLsPolicy shouldOpenExternalURLsPolicy = shouldOpenExternalURLs ? ShouldOpenExternalURLsPolicy::ShouldAllow : ShouldOpenExternalURLsPolicy::ShouldNotAllow; >+ WebCore::ShouldOpenExternalURLsPolicy shouldOpenExternalURLsPolicy = shouldOpenExternalURLs ? WebCore::ShouldOpenExternalURLsPolicy::ShouldAllow : WebCore::ShouldOpenExternalURLsPolicy::ShouldNotAllow; > toImpl(pageRef)->loadRequest(URL(URL(), toWTFString(URLRef)), shouldOpenExternalURLsPolicy); > } > > void WKPageLoadURLWithUserData(WKPageRef pageRef, WKURLRef URLRef, WKTypeRef userDataRef) > { >- toImpl(pageRef)->loadRequest(URL(URL(), toWTFString(URLRef)), ShouldOpenExternalURLsPolicy::ShouldNotAllow, toImpl(userDataRef)); >+ toImpl(pageRef)->loadRequest(URL(URL(), toWTFString(URLRef)), WebCore::ShouldOpenExternalURLsPolicy::ShouldNotAllow, toImpl(userDataRef)); > } > > void WKPageLoadURLRequest(WKPageRef pageRef, WKURLRequestRef urlRequestRef) >@@ -178,7 +178,7 @@ > void WKPageLoadURLRequestWithUserData(WKPageRef pageRef, WKURLRequestRef urlRequestRef, WKTypeRef userDataRef) > { > auto resourceRequest = toImpl(urlRequestRef)->resourceRequest(); >- toImpl(pageRef)->loadRequest(WTFMove(resourceRequest), ShouldOpenExternalURLsPolicy::ShouldNotAllow, toImpl(userDataRef)); >+ toImpl(pageRef)->loadRequest(WTFMove(resourceRequest), WebCore::ShouldOpenExternalURLsPolicy::ShouldNotAllow, toImpl(userDataRef)); > } > > void WKPageLoadFile(WKPageRef pageRef, WKURLRef fileURL, WKURLRef resourceDirectoryURL) >@@ -691,22 +691,22 @@ > > void WKPageSetPaginationMode(WKPageRef pageRef, WKPaginationMode paginationMode) > { >- Pagination::Mode mode; >+ WebCore::Pagination::Mode mode; > switch (paginationMode) { > case kWKPaginationModeUnpaginated: >- mode = Pagination::Unpaginated; >+ mode = WebCore::Pagination::Unpaginated; > break; > case kWKPaginationModeLeftToRight: >- mode = Pagination::LeftToRightPaginated; >+ mode = WebCore::Pagination::LeftToRightPaginated; > break; > case kWKPaginationModeRightToLeft: >- mode = Pagination::RightToLeftPaginated; >+ mode = WebCore::Pagination::RightToLeftPaginated; > break; > case kWKPaginationModeTopToBottom: >- mode = Pagination::TopToBottomPaginated; >+ mode = WebCore::Pagination::TopToBottomPaginated; > break; > case kWKPaginationModeBottomToTop: >- mode = Pagination::BottomToTopPaginated; >+ mode = WebCore::Pagination::BottomToTopPaginated; > break; > default: > return; >@@ -717,15 +717,15 @@ > WKPaginationMode WKPageGetPaginationMode(WKPageRef pageRef) > { > switch (toImpl(pageRef)->paginationMode()) { >- case Pagination::Unpaginated: >+ case WebCore::Pagination::Unpaginated: > return kWKPaginationModeUnpaginated; >- case Pagination::LeftToRightPaginated: >+ case WebCore::Pagination::LeftToRightPaginated: > return kWKPaginationModeLeftToRight; >- case Pagination::RightToLeftPaginated: >+ case WebCore::Pagination::RightToLeftPaginated: > return kWKPaginationModeRightToLeft; >- case Pagination::TopToBottomPaginated: >+ case WebCore::Pagination::TopToBottomPaginated: > return kWKPaginationModeTopToBottom; >- case Pagination::BottomToTopPaginated: >+ case WebCore::Pagination::BottomToTopPaginated: > return kWKPaginationModeBottomToTop; > } > >@@ -1107,7 +1107,7 @@ > m_client.didReceiveServerRedirectForProvisionalLoadForFrame(toAPI(&page), toAPI(&frame), toAPI(userData), m_client.base.clientInfo); > } > >- void didFailProvisionalLoadWithErrorForFrame(WebPageProxy& page, WebFrameProxy& frame, API::Navigation*, const ResourceError& error, API::Object* userData) override >+ void didFailProvisionalLoadWithErrorForFrame(WebPageProxy& page, WebFrameProxy& frame, API::Navigation*, const WebCore::ResourceError& error, API::Object* userData) override > { > if (!m_client.didFailProvisionalLoadWithErrorForFrame) > return; >@@ -1123,7 +1123,7 @@ > m_client.didFinishLoadForFrame(toAPI(&page), toAPI(&frame), toAPI(userData), m_client.base.clientInfo); > } > >- void didFailLoadWithErrorForFrame(WebPageProxy& page, WebFrameProxy& frame, API::Navigation*, const ResourceError& error, API::Object* userData) override >+ void didFailLoadWithErrorForFrame(WebPageProxy& page, WebFrameProxy& frame, API::Navigation*, const WebCore::ResourceError& error, API::Object* userData) override > { > if (!m_client.didFailLoadWithErrorForFrame) > return; >@@ -1230,7 +1230,7 @@ > m_client.decidePolicyForNavigationAction(toAPI(&page), toAPI(frame), toAPI(navigationActionData.navigationType), toAPI(navigationActionData.modifiers), toAPI(navigationActionData.mouseButton), toAPI(originatingFrame), toAPI(originalRequest.ptr()), toAPI(request.ptr()), toAPI(listener.ptr()), toAPI(userData), m_client.base.clientInfo); > } > >- void decidePolicyForNewWindowAction(WebPageProxy& page, WebFrameProxy& frame, const NavigationActionData& navigationActionData, const ResourceRequest& resourceRequest, const String& frameName, Ref<WebFramePolicyListenerProxy>&& listener, API::Object* userData) override >+ void decidePolicyForNewWindowAction(WebPageProxy& page, WebFrameProxy& frame, const NavigationActionData& navigationActionData, const WebCore::ResourceRequest& resourceRequest, const String& frameName, Ref<WebFramePolicyListenerProxy>&& listener, API::Object* userData) override > { > if (!m_client.decidePolicyForNewWindowAction) { > listener->use(); >@@ -1242,7 +1242,7 @@ > m_client.decidePolicyForNewWindowAction(toAPI(&page), toAPI(&frame), toAPI(navigationActionData.navigationType), toAPI(navigationActionData.modifiers), toAPI(navigationActionData.mouseButton), toAPI(request.ptr()), toAPI(frameName.impl()), toAPI(listener.ptr()), toAPI(userData), m_client.base.clientInfo); > } > >- void decidePolicyForResponse(WebPageProxy& page, WebFrameProxy& frame, const ResourceResponse& resourceResponse, const ResourceRequest& resourceRequest, bool canShowMIMEType, Ref<WebFramePolicyListenerProxy>&& listener, API::Object* userData) override >+ void decidePolicyForResponse(WebPageProxy& page, WebFrameProxy& frame, const WebCore::ResourceResponse& resourceResponse, const WebCore::ResourceRequest& resourceRequest, bool canShowMIMEType, Ref<WebFramePolicyListenerProxy>&& listener, API::Object* userData) override > { > if (!m_client.decidePolicyForResponse_deprecatedForUseWithV0 && !m_client.decidePolicyForResponse) { > listener->use(); >@@ -1258,7 +1258,7 @@ > m_client.decidePolicyForResponse(toAPI(&page), toAPI(&frame), toAPI(response.ptr()), toAPI(request.ptr()), canShowMIMEType, toAPI(listener.ptr()), toAPI(userData), m_client.base.clientInfo); > } > >- void unableToImplementPolicy(WebPageProxy& page, WebFrameProxy& frame, const ResourceError& error, API::Object* userData) override >+ void unableToImplementPolicy(WebPageProxy& page, WebFrameProxy& frame, const WebCore::ResourceError& error, API::Object* userData) override > { > if (!m_client.unableToImplementPolicy) > return; >@@ -1271,7 +1271,8 @@ > } > > namespace WebKit { >- >+using namespace WebCore; >+ > class RunBeforeUnloadConfirmPanelResultListener : public API::ObjectImpl<API::Object::Type::RunBeforeUnloadConfirmPanelResultListener> { > public: > static Ref<RunBeforeUnloadConfirmPanelResultListener> create(Function<void(bool)>&& completionHandler) >@@ -2699,3 +2700,4 @@ > #endif // not ENABLE(APPLICATION_MANIFEST) > } > #endif >+ >Index: Source/WebKit/UIProcess/API/C/cg/WKIconDatabaseCG.cpp >=================================================================== >--- Source/WebKit/UIProcess/API/C/cg/WKIconDatabaseCG.cpp (revision 239019) >+++ Source/WebKit/UIProcess/API/C/cg/WKIconDatabaseCG.cpp (working copy) >@@ -31,7 +31,6 @@ > #include <WebCore/Image.h> > > using namespace WebKit; >-using namespace WebCore; > > CGImageRef WKIconDatabaseTryGetCGImageForURL(WKIconDatabaseRef, WKURLRef, WKSize) > { >@@ -42,3 +41,4 @@ > { > return nullptr; > } >+ >Index: Source/WebKit/UIProcess/Cocoa/WebViewImpl.h >=================================================================== >--- Source/WebKit/UIProcess/Cocoa/WebViewImpl.h (revision 239019) >+++ Source/WebKit/UIProcess/Cocoa/WebViewImpl.h (working copy) >@@ -134,6 +134,7 @@ > class PageClient; > class PageClientImpl; > class DrawingAreaProxy; >+class SafeBrowsingWarning; > class ViewGestureController; > class ViewSnapshot; > class WebBackForwardListItem; >Index: Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm >=================================================================== >--- Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm (revision 239019) >+++ Source/WebKit/UIProcess/Cocoa/WebViewImpl.mm (working copy) >@@ -61,8 +61,10 @@ > #import "WKImmediateActionController.h" > #import "WKPrintingView.h" > #import "WKSafeBrowsingWarning.h" >+#import "WKShareSheet.h" > #import "WKTextInputWindowController.h" > #import "WKViewLayoutStrategy.h" >+#import "WKWebViewInternal.h" > #import "WKWebViewPrivate.h" > #import "WebBackForwardList.h" > #import "WebEditCommandProxy.h" >Index: Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm >=================================================================== >--- Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm (revision 239019) >+++ Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm (working copy) >@@ -38,10 +38,9 @@ > #import <pal/spi/cocoa/QuartzCoreSPI.h> > #import <wtf/SoftLinking.h> > >+namespace WebKit { > using namespace WebCore; > >-namespace WebKit { >- > static RetainPtr<UIView> createRemoteView(pid_t pid, uint32_t contextID) > { > #if USE(UIREMOTEVIEW_CONTEXT_HOSTING) >Index: Source/WebKit/UIProcess/WebStorage/LocalStorageDatabase.cpp >=================================================================== >--- Source/WebKit/UIProcess/WebStorage/LocalStorageDatabase.cpp (revision 239019) >+++ Source/WebKit/UIProcess/WebStorage/LocalStorageDatabase.cpp (working copy) >@@ -38,13 +38,12 @@ > #include <wtf/text/StringHash.h> > #include <wtf/text/WTFString.h> > >-using namespace WebCore; >- > static const auto databaseUpdateInterval = 1_s; > > static const int maximumItemsToUpdate = 100; > > namespace WebKit { >+using namespace WebCore; > > Ref<LocalStorageDatabase> LocalStorageDatabase::create(Ref<WorkQueue>&& queue, Ref<LocalStorageDatabaseTracker>&& tracker, const SecurityOriginData& securityOrigin) > { >Index: Source/WebKit/UIProcess/ios/WKContentView.mm >=================================================================== >--- Source/WebKit/UIProcess/ios/WKContentView.mm (revision 239019) >+++ Source/WebKit/UIProcess/ios/WKContentView.mm (working copy) >@@ -62,10 +62,11 @@ > #import <wtf/RetainPtr.h> > #import <wtf/text/TextStream.h> > >+ >+namespace WebKit { > using namespace WebCore; > using namespace WebKit; > >-namespace WebKit { > class HistoricalVelocityData { > public: > struct VelocityData { >@@ -171,7 +172,7 @@ > @end > > @implementation WKContentView { >- std::unique_ptr<PageClientImpl> _pageClient; >+ std::unique_ptr<WebKit::PageClientImpl> _pageClient; > ALLOW_DEPRECATED_DECLARATIONS_BEGIN > RetainPtr<WKBrowsingContextController> _browsingContextController; > ALLOW_DEPRECATED_DECLARATIONS_END >@@ -181,7 +182,7 @@ > RetainPtr<WKInspectorIndicationView> _inspectorIndicationView; > RetainPtr<WKInspectorHighlightView> _inspectorHighlightView; > >- HistoricalVelocityData _historicalKinematicData; >+ WebKit::HistoricalVelocityData _historicalKinematicData; > > RetainPtr<NSUndoManager> _undoManager; > >@@ -195,7 +196,7 @@ > > _page = processPool.createWebPage(*_pageClient, WTFMove(configuration)); > _page->initializeWebPage(); >- _page->setIntrinsicDeviceScaleFactor(screenScaleFactor([UIScreen mainScreen])); >+ _page->setIntrinsicDeviceScaleFactor(WebCore::screenScaleFactor([UIScreen mainScreen])); > _page->setUseFixedLayout(true); > _page->setDelegatesScrolling(true); > >@@ -203,7 +204,7 @@ > _page->setFullscreenClient(std::make_unique<WebKit::FullscreenClient>(_webView)); > #endif > >- WebProcessPool::statistics().wkViewCount++; >+ WebKit::WebProcessPool::statistics().wkViewCount++; > > _rootContentView = adoptNS([[UIView alloc] init]); > [_rootContentView layer].name = @"RootContent"; >@@ -233,9 +234,9 @@ > if (!(self = [super initWithFrame:frame webView:webView])) > return nil; > >- InitializeWebKit2(); >+ WebKit::InitializeWebKit2(); > >- _pageClient = std::make_unique<PageClientImpl>(self, webView); >+ _pageClient = std::make_unique<WebKit::PageClientImpl>(self, webView); > _webView = webView; > > return [self _commonInitializationWithProcessPool:processPool configuration:WTFMove(configuration)]; >@@ -249,12 +250,12 @@ > > _page->close(); > >- WebProcessPool::statistics().wkViewCount--; >+ WebKit::WebProcessPool::statistics().wkViewCount--; > > [super dealloc]; > } > >-- (WebPageProxy*)page >+- (WebKit::WebPageProxy*)page > { > return _page.get(); > } >@@ -343,9 +344,9 @@ > } > } > >-- (void)updateFixedClippingView:(FloatRect)fixedPositionRectForUI >+- (void)updateFixedClippingView:(WebCore::FloatRect)fixedPositionRectForUI > { >- FloatRect clippingBounds = [self bounds]; >+ WebCore::FloatRect clippingBounds = [self bounds]; > clippingBounds.unite(fixedPositionRectForUI); > > [_fixedClippingView setCenter:clippingBounds.location()]; // Not really the center since we set an anchor point. >@@ -386,18 +387,18 @@ > return; > > MonotonicTime timestamp = MonotonicTime::now(); >- HistoricalVelocityData::VelocityData velocityData; >+ WebKit::HistoricalVelocityData::VelocityData velocityData; > if (!isStableState) > velocityData = _historicalKinematicData.velocityForNewData(visibleContentRect.origin, zoomScale, timestamp); > else > _historicalKinematicData.clear(); > >- RemoteScrollingCoordinatorProxy* scrollingCoordinator = _page->scrollingCoordinatorProxy(); >+ WebKit::RemoteScrollingCoordinatorProxy* scrollingCoordinator = _page->scrollingCoordinatorProxy(); > > CGRect unobscuredContentRectRespectingInputViewBounds = [self _computeUnobscuredContentRectRespectingInputViewBounds:unobscuredContentRect inputViewBounds:inputViewBounds]; >- FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscuredContentRect, unobscuredContentRectRespectingInputViewBounds, _page->customFixedPositionRect(), zoomScale, FrameView::LayoutViewportConstraint::ConstrainedToDocumentRect, scrollingCoordinator->visualViewportEnabled()); >+ WebCore::FloatRect fixedPositionRectForLayout = _page->computeCustomFixedPositionRect(unobscuredContentRect, unobscuredContentRectRespectingInputViewBounds, _page->customFixedPositionRect(), zoomScale, WebCore::FrameView::LayoutViewportConstraint::ConstrainedToDocumentRect, scrollingCoordinator->visualViewportEnabled()); > >- VisibleContentRectUpdateInfo visibleContentRectUpdateInfo( >+ WebKit::VisibleContentRectUpdateInfo visibleContentRectUpdateInfo( > visibleContentRect, > unobscuredContentRect, > unobscuredRectInScrollViewCoordinates, >@@ -415,7 +416,7 @@ > velocityData.horizontalVelocity, > velocityData.verticalVelocity, > velocityData.scaleChangeRate, >- downcast<RemoteLayerTreeDrawingAreaProxy>(*drawingArea).lastCommittedLayerTreeTransactionID()); >+ downcast<WebKit::RemoteLayerTreeDrawingAreaProxy>(*drawingArea).lastCommittedLayerTreeTransactionID()); > > LOG_WITH_STREAM(VisibleRects, stream << "-[WKContentView didUpdateVisibleRect]" << visibleContentRectUpdateInfo.dump()); > >@@ -424,7 +425,7 @@ > > _sizeChangedSinceLastVisibleContentRectUpdate = NO; > >- FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->unobscuredContentRectRespectingInputViewBounds(), _page->customFixedPositionRect(), zoomScale, FrameView::LayoutViewportConstraint::Unconstrained, scrollingCoordinator->visualViewportEnabled()); >+ WebCore::FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->unobscuredContentRectRespectingInputViewBounds(), _page->customFixedPositionRect(), zoomScale, WebCore::FrameView::LayoutViewportConstraint::Unconstrained, scrollingCoordinator->visualViewportEnabled()); > scrollingCoordinator->viewportChangedViaDelegatedScrolling(scrollingCoordinator->rootScrollingNodeID(), fixedPositionRect, zoomScale); > > drawingArea->updateDebugIndicator(); >@@ -476,7 +477,7 @@ > - (void)_updateForScreen:(UIScreen *)screen > { > ASSERT(screen); >- _page->setIntrinsicDeviceScaleFactor(screenScaleFactor(screen)); >+ _page->setIntrinsicDeviceScaleFactor(WebCore::screenScaleFactor(screen)); > [self _accessibilityRegisterUIProcessTokens]; > } > >@@ -497,10 +498,10 @@ > - (void)_accessibilityRegisterUIProcessTokens > { > auto uuid = [NSUUID UUID]; >- NSData *remoteElementToken = newAccessibilityRemoteToken(uuid); >+ NSData *remoteElementToken = WebKit::newAccessibilityRemoteToken(uuid); > > // Store information about the WebProcess that can later be retrieved by the iOS Accessibility runtime. >- if (_page->process().state() == WebProcessProxy::State::Running) { >+ if (_page->process().state() == WebKit::WebProcessProxy::State::Running) { > IPC::Connection* connection = _page->process().connection(); > storeAccessibilityRemoteConnectionInformation(self, _page->process().processIdentifier(), connection->identifier().port, uuid); > >@@ -516,9 +517,9 @@ > > #pragma mark PageClientImpl methods > >-- (std::unique_ptr<DrawingAreaProxy>)_createDrawingAreaProxy >+- (std::unique_ptr<WebKit::DrawingAreaProxy>)_createDrawingAreaProxy > { >- return std::make_unique<RemoteLayerTreeDrawingAreaProxy>(*_page); >+ return std::make_unique<WebKit::RemoteLayerTreeDrawingAreaProxy>(*_page); > } > > - (void)_processDidExit >@@ -554,7 +555,7 @@ > CGPoint scrollOrigin = -layerTreeTransaction.scrollOrigin(); > CGRect contentBounds = { scrollOrigin, contentsSize }; > >- LOG_WITH_STREAM(VisibleRects, stream << "-[WKContentView _didCommitLayerTree:] transactionID " << layerTreeTransaction.transactionID() << " contentBounds " << FloatRect(contentBounds)); >+ LOG_WITH_STREAM(VisibleRects, stream << "-[WKContentView _didCommitLayerTree:] transactionID " << layerTreeTransaction.transactionID() << " contentBounds " << WebCore::FloatRect(contentBounds)); > > BOOL boundsChanged = !CGRectEqualToRect([self bounds], contentBounds); > if (boundsChanged) >@@ -563,7 +564,7 @@ > [_webView _didCommitLayerTree:layerTreeTransaction]; > > if (_interactionViewsContainerView) { >- FloatPoint scaledOrigin = layerTreeTransaction.scrollOrigin(); >+ WebCore::FloatPoint scaledOrigin = layerTreeTransaction.scrollOrigin(); > float scale = [[_webView scrollView] zoomScale]; > scaledOrigin.scale(scale); > [_interactionViewsContainerView setFrame:CGRectMake(scaledOrigin.x(), scaledOrigin.y(), 0, 0)]; >@@ -571,7 +572,7 @@ > > if (boundsChanged) { > // FIXME: factor computeCustomFixedPositionRect() into something that gives us this rect. >- FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->unobscuredContentRectRespectingInputViewBounds(), _page->customFixedPositionRect(), [[_webView scrollView] zoomScale]); >+ WebCore::FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->unobscuredContentRectRespectingInputViewBounds(), _page->customFixedPositionRect(), [[_webView scrollView] zoomScale]); > [self updateFixedClippingView:fixedPositionRect]; > > // We need to push the new content bounds to the webview to update fixed position rects. >@@ -672,7 +673,7 @@ > if (CGRectIsEmpty(printingRect)) > return 0; > >- PrintInfo printInfo; >+ WebKit::PrintInfo printInfo; > printInfo.pageSetupScaleFactor = 1; > printInfo.snapshotFirstPage = printFormatter.snapshotFirstPage; > if (printInfo.snapshotFirstPage) { >@@ -686,9 +687,9 @@ > > _isPrintingToPDF = YES; > auto retainedSelf = retainPtr(self); >- return _page->computePagesForPrintingAndDrawToPDF(frameID, printInfo, [retainedSelf](const IPC::DataReference& pdfData, CallbackBase::Error error) { >+ return _page->computePagesForPrintingAndDrawToPDF(frameID, printInfo, [retainedSelf](const IPC::DataReference& pdfData, WebKit::CallbackBase::Error error) { > retainedSelf->_isPrintingToPDF = NO; >- if (error != CallbackBase::Error::None) >+ if (error != WebKit::CallbackBase::Error::None) > return; > > auto data = adoptCF(CFDataCreate(kCFAllocatorDefault, pdfData.data(), pdfData.size())); >Index: Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm >=================================================================== >--- Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (revision 239019) >+++ Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (working copy) >@@ -142,11 +142,10 @@ > > #endif > >+namespace WebKit { > using namespace WebCore; > using namespace WebKit; > >-namespace WebKit { >- > WKSelectionDrawingInfo::WKSelectionDrawingInfo() > : type(SelectionType::None) > { >@@ -282,7 +281,7 @@ > @protocol UISelectionInteractionAssistant; > > @interface WKFocusedElementInfo : NSObject <_WKFocusedElementInfo> >-- (instancetype)initWithAssistedNodeInformation:(const AssistedNodeInformation&)information isUserInitiated:(BOOL)isUserInitiated userObject:(NSObject <NSSecureCoding> *)userObject; >+- (instancetype)initWithAssistedNodeInformation:(const WebKit::AssistedNodeInformation&)information isUserInitiated:(BOOL)isUserInitiated userObject:(NSObject <NSSecureCoding> *)userObject; > @end > > @implementation WKFormInputSession { >@@ -442,7 +441,7 @@ > RetainPtr<NSString> _label; > } > >-- (instancetype)initWithAssistedNodeInformation:(const AssistedNodeInformation&)information isUserInitiated:(BOOL)isUserInitiated userObject:(NSObject <NSSecureCoding> *)userObject >+- (instancetype)initWithAssistedNodeInformation:(const WebKit::AssistedNodeInformation&)information isUserInitiated:(BOOL)isUserInitiated userObject:(NSObject <NSSecureCoding> *)userObject > { > if (!(self = [super init])) > return nil; >@@ -612,7 +611,7 @@ > > static inline bool hasAssistedNode(WebKit::AssistedNodeInformation assistedNodeInformation) > { >- return (assistedNodeInformation.elementType != InputType::None); >+ return (assistedNodeInformation.elementType != WebKit::InputType::None); > } > > - (WKFormInputSession *)_formInputSession >@@ -729,7 +728,7 @@ > > _actionSheetAssistant = adoptNS([[WKActionSheetAssistant alloc] initWithView:self]); > [_actionSheetAssistant setDelegate:self]; >- _smartMagnificationController = std::make_unique<SmartMagnificationController>(self); >+ _smartMagnificationController = std::make_unique<WebKit::SmartMagnificationController>(self); > _isExpectingFastSingleTapCommit = NO; > _potentialTapInProgress = NO; > _isDoubleTapPending = NO; >@@ -977,7 +976,7 @@ > return [super hitTest:point withEvent:event]; > } > >-- (const InteractionInformationAtPosition&)positionInformation >+- (const WebKit::InteractionInformationAtPosition&)positionInformation > { > return _positionInformation; > } >@@ -1109,10 +1108,10 @@ > > _lastInteractionLocation = lastTouchEvent->locationInDocumentCoordinates; > if (lastTouchEvent->type == UIWebTouchEventTouchBegin) >- _layerTreeTransactionIdAtLastTouchStart = downcast<RemoteLayerTreeDrawingAreaProxy>(*_page->drawingArea()).lastCommittedLayerTreeTransactionID(); >+ _layerTreeTransactionIdAtLastTouchStart = downcast<WebKit::RemoteLayerTreeDrawingAreaProxy>(*_page->drawingArea()).lastCommittedLayerTreeTransactionID(); > > #if ENABLE(TOUCH_EVENTS) >- NativeWebTouchEvent nativeWebTouchEvent(lastTouchEvent); >+ WebKit::NativeWebTouchEvent nativeWebTouchEvent(lastTouchEvent); > nativeWebTouchEvent.setCanPreventNativeGestures(!_canSendTouchEventsAsynchronously || [gestureRecognizer isDefaultPrevented]); > > if (_canSendTouchEventsAsynchronously) >@@ -1145,7 +1144,7 @@ > } > } > >-static FloatQuad inflateQuad(const FloatQuad& quad, float inflateSize) >+static WebCore::FloatQuad inflateQuad(const WebCore::FloatQuad& quad, float inflateSize) > { > // We sort the output points like this (as expected by the highlight view): > // p2------p3 >@@ -1153,7 +1152,7 @@ > // p1------p4 > > // 1) Sort the points horizontally. >- FloatPoint points[4] = { quad.p1(), quad.p4(), quad.p2(), quad.p3() }; >+ WebCore::FloatPoint points[4] = { quad.p1(), quad.p4(), quad.p2(), quad.p3() }; > if (points[0].x() > points[1].x()) > std::swap(points[0], points[1]); > if (points[2].x() > points[3].x()) >@@ -1179,7 +1178,7 @@ > points[2].move(inflateSize, -inflateSize); > points[3].move(inflateSize, inflateSize); > >- return FloatQuad(points[1], points[0], points[2], points[3]); >+ return WebCore::FloatQuad(points[1], points[0], points[2], points[3]); > } > > #if ENABLE(TOUCH_EVENTS) >@@ -1216,9 +1215,9 @@ > const size_t quadCount = highlightedQuads.size(); > RetainPtr<NSMutableArray> rects = adoptNS([[NSMutableArray alloc] initWithCapacity:static_cast<const NSUInteger>(quadCount)]); > for (size_t i = 0; i < quadCount; ++i) { >- const FloatQuad& quad = highlightedQuads[i]; >+ const WebCore::FloatQuad& quad = highlightedQuads[i]; > if (quad.isRectilinear()) { >- FloatRect boundingBox = quad.boundingBox(); >+ WebCore::FloatRect boundingBox = quad.boundingBox(); > boundingBox.scale(selfScale); > boundingBox.inflate(minimumTapHighlightRadius); > CGRect pixelAlignedRect = static_cast<CGRect>(encloseRectToDevicePixels(boundingBox, deviceScaleFactor)); >@@ -1235,9 +1234,9 @@ > else { > RetainPtr<NSMutableArray> quads = adoptNS([[NSMutableArray alloc] initWithCapacity:static_cast<const NSUInteger>(quadCount)]); > for (size_t i = 0; i < quadCount; ++i) { >- FloatQuad quad = highlightedQuads[i]; >+ WebCore::FloatQuad quad = highlightedQuads[i]; > quad.scale(selfScale); >- FloatQuad extendedQuad = inflateQuad(quad, minimumTapHighlightRadius); >+ WebCore::FloatQuad extendedQuad = inflateQuad(quad, minimumTapHighlightRadius); > [quads addObject:[NSValue valueWithCGPoint:extendedQuad.p1()]]; > [quads addObject:[NSValue valueWithCGPoint:extendedQuad.p2()]]; > [quads addObject:[NSValue valueWithCGPoint:extendedQuad.p3()]]; >@@ -1256,7 +1255,7 @@ > > - (void)_showTapHighlight > { >- auto shouldPaintTapHighlight = [&](const FloatRect& rect) { >+ auto shouldPaintTapHighlight = [&](const WebCore::FloatRect& rect) { > static const float highlightPaintThreshold = 0.3; // 30% > float highlightArea = 0; > for (auto highlightQuad : _tapHighlightInformation.quads) { >@@ -1360,18 +1359,18 @@ > { > // FIXME: We should add the logic to handle keyboard visibility during focus redirects. > switch (_assistedNodeInformation.elementType) { >- case InputType::None: >+ case WebKit::InputType::None: > return NO; >- case InputType::Select: >+ case WebKit::InputType::Select: > #if ENABLE(INPUT_TYPE_COLOR) >- case InputType::Color: >+ case WebKit::InputType::Color: > #endif >- case InputType::Date: >- case InputType::Month: >- case InputType::DateTimeLocal: >- case InputType::Time: >+ case WebKit::InputType::Date: >+ case WebKit::InputType::Month: >+ case WebKit::InputType::DateTimeLocal: >+ case WebKit::InputType::Time: > return !currentUserInterfaceIdiomIsPad(); >- case InputType::Drawing: >+ case WebKit::InputType::Drawing: > return YES; > default: > return !_assistedNodeInformation.isReadOnly; >@@ -1386,17 +1385,17 @@ > > - (void)_displayFormNodeInputView > { >- if (!_suppressSelectionAssistantReasons.contains(FocusedElementIsTransparent)) { >+ if (!_suppressSelectionAssistantReasons.contains(WebKit::FocusedElementIsTransparent)) { > // In case user scaling is force enabled, do not use that scaling when zooming in with an input field. > // Zooming above the page's default scale factor should only happen when the user performs it. > [self _zoomToFocusRect:_assistedNodeInformation.elementRect >- selectionRect:_didAccessoryTabInitiateFocus ? IntRect() : _assistedNodeInformation.selectionRect >+ selectionRect:_didAccessoryTabInitiateFocus ? WebCore::IntRect() : _assistedNodeInformation.selectionRect > insideFixed:_assistedNodeInformation.insideFixedPosition > fontSize:_assistedNodeInformation.nodeFontSize > minimumScale:_assistedNodeInformation.minimumScaleFactor > maximumScale:_assistedNodeInformation.maximumScaleFactorIgnoringAlwaysScalable > allowScaling:_assistedNodeInformation.allowsUserScalingIgnoringAlwaysScalable && !currentUserInterfaceIdiomIsPad() >- forceScroll:(_assistedNodeInformation.inputMode == InputMode::None) ? !currentUserInterfaceIdiomIsPad() : [self requiresAccessoryView]]; >+ forceScroll:(_assistedNodeInformation.inputMode == WebCore::InputMode::None) ? !currentUserInterfaceIdiomIsPad() : [self requiresAccessoryView]]; > } > > _didAccessoryTabInitiateFocus = NO; >@@ -1409,20 +1408,20 @@ > if (!hasAssistedNode(_assistedNodeInformation)) > return nil; > >- if (_assistedNodeInformation.inputMode == InputMode::None) >+ if (_assistedNodeInformation.inputMode == WebCore::InputMode::None) > return [[UIView new] autorelease]; > > if (!_inputPeripheral) { > switch (_assistedNodeInformation.elementType) { >- case InputType::Select: >+ case WebKit::InputType::Select: > _inputPeripheral = adoptNS([[WKFormSelectControl alloc] initWithView:self]); > break; > #if ENABLE(INPUT_TYPE_COLOR) >- case InputType::Color: >+ case WebKit::InputType::Color: > _inputPeripheral = adoptNS([[WKFormColorControl alloc] initWithView:self]); > break; > #endif >- case InputType::Drawing: >+ case WebKit::InputType::Drawing: > #if HAVE(PENCILKIT) > _inputPeripheral = adoptNS([[WKInkPickerControl alloc] initWithDrawingView:_page->editableImageController().editableImage(_assistedNodeInformation.embeddedViewID)->drawingView.get()]); > break; >@@ -1560,7 +1559,7 @@ > [_actionSheetAssistant showDataDetectorsSheet]; > } > >-- (SEL)_actionForLongPressFromPositionInformation:(const InteractionInformationAtPosition&)positionInformation >+- (SEL)_actionForLongPressFromPositionInformation:(const WebKit::InteractionInformationAtPosition&)positionInformation > { > if (!_webView.configuration._longPressActionsEnabled) > return nil; >@@ -1573,7 +1572,7 @@ > > if (positionInformation.isLink) { > #if ENABLE(DATA_DETECTION) >- if (DataDetection::canBePresentedByDataDetectors(positionInformation.url)) >+ if (WebCore::DataDetection::canBePresentedByDataDetectors(positionInformation.url)) > return @selector(_showDataDetectorsSheet); > #endif > return @selector(_showLinkSheet); >@@ -1589,12 +1588,12 @@ > return [self _actionForLongPressFromPositionInformation:_positionInformation]; > } > >-- (InteractionInformationAtPosition)currentPositionInformation >+- (WebKit::InteractionInformationAtPosition)currentPositionInformation > { > return _positionInformation; > } > >-- (void)doAfterPositionInformationUpdate:(void (^)(InteractionInformationAtPosition))action forRequest:(InteractionInformationRequest)request >+- (void)doAfterPositionInformationUpdate:(void (^)(WebKit::InteractionInformationAtPosition))action forRequest:(WebKit::InteractionInformationRequest)request > { > if ([self _currentPositionInformationIsValidForRequest:request]) { > // If the most recent position information is already valid, invoke the given action block immediately. >@@ -1639,17 +1638,17 @@ > _page->requestPositionInformation(request); > } > >-- (BOOL)_currentPositionInformationIsValidForRequest:(const InteractionInformationRequest&)request >+- (BOOL)_currentPositionInformationIsValidForRequest:(const WebKit::InteractionInformationRequest&)request > { > return _hasValidPositionInformation && _positionInformation.request.isValidForRequest(request); > } > >-- (BOOL)_hasValidOutstandingPositionInformationRequest:(const InteractionInformationRequest&)request >+- (BOOL)_hasValidOutstandingPositionInformationRequest:(const WebKit::InteractionInformationRequest&)request > { > return _outstandingPositionInformationRequest && _outstandingPositionInformationRequest->isValidForRequest(request); > } > >-- (BOOL)_currentPositionInformationIsApproximatelyValidForRequest:(const InteractionInformationRequest&)request >+- (BOOL)_currentPositionInformationIsApproximatelyValidForRequest:(const WebKit::InteractionInformationRequest&)request > { > return _hasValidPositionInformation && _positionInformation.request.isApproximatelyValidForRequest(request); > } >@@ -1715,7 +1714,7 @@ > if (hasAssistedNode(_assistedNodeInformation)) { > // Request information about the position with sync message. > // If the assisted node is the same, prevent the gesture. >- if (![self ensurePositionInformationIsUpToDate:InteractionInformationRequest(roundedIntPoint(point))]) >+ if (![self ensurePositionInformationIsUpToDate:WebKit::InteractionInformationRequest(WebCore::roundedIntPoint(point))]) > return NO; > if (_positionInformation.nodeAtPositionIsAssistedNode) > return NO; >@@ -1734,7 +1733,7 @@ > // We still have no idea about what is at the location. > // Send an async message to find out. > _hasValidPositionInformation = NO; >- InteractionInformationRequest request(roundedIntPoint(point)); >+ WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); > > // If 3D Touch is enabled, asynchronously collect snapshots in the hopes that > // they'll arrive before we have to synchronously request them in >@@ -1753,7 +1752,7 @@ > // Use the information retrieved with one of the previous calls > // to gestureRecognizerShouldBegin. > // Force a sync call if not ready yet. >- InteractionInformationRequest request(roundedIntPoint(point)); >+ WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); > if (![self ensurePositionInformationIsUpToDate:request]) > return NO; > >@@ -1810,7 +1809,7 @@ > if (_inspectorNodeSearchEnabled) > return NO; > >- InteractionInformationRequest request(roundedIntPoint(point)); >+ WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); > if (![self ensurePositionInformationIsUpToDate:request]) > return NO; > >@@ -1833,7 +1832,7 @@ > if (_suppressSelectionAssistantReasons) > return NO; > >- InteractionInformationRequest request(roundedIntPoint(point)); >+ WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); > if (![self ensurePositionInformationIsUpToDate:request]) > return NO; > return _positionInformation.isNearMarkedText; >@@ -1847,7 +1846,7 @@ > if (_suppressSelectionAssistantReasons) > return NO; > >- InteractionInformationRequest request(roundedIntPoint(point)); >+ WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); > if (![self ensurePositionInformationIsUpToDate:request]) > return NO; > >@@ -1891,7 +1890,7 @@ > const WebCore::SelectionRect& coreRect = selectionRects[i]; > WebSelectionRect *webRect = [WebSelectionRect selectionRect]; > webRect.rect = coreRect.rect(); >- webRect.writingDirection = coreRect.direction() == TextDirection::LTR ? WKWritingDirectionLeftToRight : WKWritingDirectionRightToLeft; >+ webRect.writingDirection = coreRect.direction() == WebCore::TextDirection::LTR ? WKWritingDirectionLeftToRight : WKWritingDirectionRightToLeft; > webRect.isLineBreak = coreRect.isLineBreak(); > webRect.isFirstOnLine = coreRect.isFirstOnLine(); > webRect.isLastOnLine = coreRect.isLastOnLine(); >@@ -1948,7 +1947,7 @@ > { > _isTapHighlightIDValid = YES; > _isExpectingFastSingleTapCommit = YES; >- _page->handleTwoFingerTapAtPoint(roundedIntPoint(gestureRecognizer.centroid), ++_latestTapID); >+ _page->handleTwoFingerTapAtPoint(WebCore::roundedIntPoint(gestureRecognizer.centroid), ++_latestTapID); > } > > - (void)_stylusSingleTapRecognized:(UITapGestureRecognizer *)gestureRecognizer >@@ -1957,7 +1956,7 @@ > return; > > ASSERT(gestureRecognizer == _stylusSingleTapGestureRecognizer); >- _page->handleStylusSingleTapAtPoint(roundedIntPoint(gestureRecognizer.location), ++_latestTapID); >+ _page->handleStylusSingleTapAtPoint(WebCore::roundedIntPoint(gestureRecognizer.location), ++_latestTapID); > } > > - (void)_longPressRecognized:(UILongPressGestureRecognizer *)gestureRecognizer >@@ -2049,7 +2048,7 @@ > > if (![self isFirstResponder]) { > if (!_inputViewUpdateDeferrer) >- _inputViewUpdateDeferrer = std::make_unique<InputViewUpdateDeferrer>(); >+ _inputViewUpdateDeferrer = std::make_unique<WebKit::InputViewUpdateDeferrer>(); > [self becomeFirstResponder]; > } > >@@ -2108,7 +2107,7 @@ > { > if (![self isFirstResponder]) { > if (!_inputViewUpdateDeferrer) >- _inputViewUpdateDeferrer = std::make_unique<InputViewUpdateDeferrer>(); >+ _inputViewUpdateDeferrer = std::make_unique<WebKit::InputViewUpdateDeferrer>(); > [self becomeFirstResponder]; > } > >@@ -2132,11 +2131,11 @@ > _page->clearSelection(); > } > >-- (void)_positionInformationDidChange:(const InteractionInformationAtPosition&)info >+- (void)_positionInformationDidChange:(const WebKit::InteractionInformationAtPosition&)info > { > _outstandingPositionInformationRequest = std::nullopt; > >- InteractionInformationAtPosition newInfo = info; >+ WebKit::InteractionInformationAtPosition newInfo = info; > newInfo.mergeCompatibleOptionalInformation(_positionInformation); > > _positionInformation = newInfo; >@@ -2185,34 +2184,34 @@ > if ([_formInputSession customInputAccessoryView]) > return YES; > >- if (_assistedNodeInformation.inputMode == InputMode::None) >+ if (_assistedNodeInformation.inputMode == WebCore::InputMode::None) > return NO; > > switch (_assistedNodeInformation.elementType) { >- case InputType::None: >+ case WebKit::InputType::None: > return NO; >- case InputType::Text: >- case InputType::Password: >- case InputType::Search: >- case InputType::Email: >- case InputType::URL: >- case InputType::Phone: >- case InputType::Number: >- case InputType::NumberPad: >- case InputType::ContentEditable: >- case InputType::TextArea: >- case InputType::Select: >- case InputType::Date: >- case InputType::DateTime: >- case InputType::DateTimeLocal: >- case InputType::Month: >- case InputType::Week: >- case InputType::Time: >+ case WebKit::InputType::Text: >+ case WebKit::InputType::Password: >+ case WebKit::InputType::Search: >+ case WebKit::InputType::Email: >+ case WebKit::InputType::URL: >+ case WebKit::InputType::Phone: >+ case WebKit::InputType::Number: >+ case WebKit::InputType::NumberPad: >+ case WebKit::InputType::ContentEditable: >+ case WebKit::InputType::TextArea: >+ case WebKit::InputType::Select: >+ case WebKit::InputType::Date: >+ case WebKit::InputType::DateTime: >+ case WebKit::InputType::DateTimeLocal: >+ case WebKit::InputType::Month: >+ case WebKit:: InputType::Week: >+ case WebKit::InputType::Time: > #if ENABLE(INPUT_TYPE_COLOR) >- case InputType::Color: >+ case WebKit::InputType::Color: > #endif > return !currentUserInterfaceIdiomIsPad(); >- case InputType::Drawing: >+ case WebKit::InputType::Drawing: > return YES; > } > } >@@ -2257,7 +2256,7 @@ > [plainTextTypes addObjectsFromArray:UIPasteboardTypeListString]; > > richTypes = [[NSMutableArray alloc] init]; >- [richTypes addObject:WebArchivePboardType]; >+ [richTypes addObject:WebCore::WebArchivePboardType]; > [richTypes addObjectsFromArray:UIPasteboardTypeListImage]; > [richTypes addObjectsFromArray:plainTextTypes]; > } >@@ -2279,8 +2278,8 @@ > - (void)_lookupForWebView:(id)sender > { > RetainPtr<WKContentView> view = self; >- _page->getSelectionContext([view](const String& selectedText, const String& textBefore, const String& textAfter, CallbackBase::Error error) { >- if (error != CallbackBase::Error::None) >+ _page->getSelectionContext([view](const String& selectedText, const String& textBefore, const String& textAfter, WebKit::CallbackBase::Error error) { >+ if (error != WebKit::CallbackBase::Error::None) > return; > if (!selectedText) > return; >@@ -2304,8 +2303,8 @@ > - (void)_shareForWebView:(id)sender > { > RetainPtr<WKContentView> view = self; >- _page->getSelectionOrContentsAsString([view](const String& string, CallbackBase::Error error) { >- if (error != CallbackBase::Error::None) >+ _page->getSelectionOrContentsAsString([view](const String& string, WebKit::CallbackBase::Error error) { >+ if (error != WebKit::CallbackBase::Error::None) > return; > if (!string) > return; >@@ -2465,9 +2464,9 @@ > > auto typingAttributes = _page->editorState().postLayoutData().typingAttributes; > CTFontSymbolicTraits symbolicTraits = 0; >- if (typingAttributes & AttributeBold) >+ if (typingAttributes & WebKit::AttributeBold) > symbolicTraits |= kCTFontBoldTrait; >- if (typingAttributes & AttributeItalics) >+ if (typingAttributes & WebKit::AttributeItalics) > symbolicTraits |= kCTFontTraitItalic; > > // We chose a random font family and size. >@@ -2481,7 +2480,7 @@ > if (font) > [result setObject:(id)font.get() forKey:NSFontAttributeName]; > >- if (typingAttributes & AttributeUnderline) >+ if (typingAttributes & WebKit::AttributeUnderline) > [result setObject:[NSNumber numberWithInt:NSUnderlineStyleSingle] forKey:NSUnderlineStyleAttributeName]; > > return result; >@@ -2548,10 +2547,10 @@ > if (focusedDocumentOrigin.isEmpty()) > return NO; > >- NSArray *allCustomPasteboardData = [pasteboard dataForPasteboardType:@(PasteboardCustomData::cocoaType()) inItemSet:indices]; >+ NSArray *allCustomPasteboardData = [pasteboard dataForPasteboardType:@(WebCore::PasteboardCustomData::cocoaType()) inItemSet:indices]; > for (NSData *data in allCustomPasteboardData) { >- auto buffer = SharedBuffer::create(data); >- if (PasteboardCustomData::fromSharedBuffer(buffer.get()).origin == focusedDocumentOrigin) >+ auto buffer = WebCore::SharedBuffer::create(data); >+ if (WebCore::PasteboardCustomData::fromSharedBuffer(buffer.get()).origin == focusedDocumentOrigin) > return YES; > } > return NO; >@@ -2687,7 +2686,7 @@ > { > [_textSelectionAssistant selectWord]; > // We cannot use selectWord command, because we want to be able to select the word even when it is the last in the paragraph. >- _page->extendSelection(WordGranularity); >+ _page->extendSelection(WebCore::WordGranularity); > } > > - (void)selectAllForWebView:(id)sender >@@ -2767,7 +2766,7 @@ > - (void)_accessibilityRetrieveRectsEnclosingSelectionOffset:(NSInteger)offset withGranularity:(UITextGranularity)granularity > { > RetainPtr<WKContentView> view = self; >- _page->requestRectsForGranularityWithSelectionOffset(toWKTextGranularity(granularity), offset , [view, offset, granularity](const Vector<WebCore::SelectionRect>& selectionRects, CallbackBase::Error error) { >+ _page->requestRectsForGranularityWithSelectionOffset(toWKTextGranularity(granularity), offset , [view, offset, granularity](const Vector<WebCore::SelectionRect>& selectionRects, WebKit::CallbackBase::Error error) { > if (error != WebKit::CallbackBase::Error::None) > return; > if ([view respondsToSelector:@selector(_accessibilityDidGetSelectionRects:withGranularity:atOffset:)]) >@@ -2780,10 +2779,10 @@ > [self _accessibilityRetrieveRectsAtSelectionOffset:offset withText:text completionHandler:nil]; > } > >-- (void)_accessibilityRetrieveRectsAtSelectionOffset:(NSInteger)offset withText:(NSString *)text completionHandler:(void (^)(const Vector<SelectionRect>& rects))completionHandler >+- (void)_accessibilityRetrieveRectsAtSelectionOffset:(NSInteger)offset withText:(NSString *)text completionHandler:(void (^)(const Vector<WebCore::SelectionRect>& rects))completionHandler > { > RetainPtr<WKContentView> view = self; >- _page->requestRectsAtSelectionOffsetWithText(offset, text, [view, offset, capturedCompletionHandler = makeBlockPtr(completionHandler)](const Vector<SelectionRect>& selectionRects, CallbackBase::Error error) { >+ _page->requestRectsAtSelectionOffsetWithText(offset, text, [view, offset, capturedCompletionHandler = makeBlockPtr(completionHandler)](const Vector<WebCore::SelectionRect>& selectionRects, WebKit::CallbackBase::Error error) { > if (capturedCompletionHandler) > capturedCompletionHandler(selectionRects); > >@@ -2806,160 +2805,160 @@ > > // UIWKInteractionViewProtocol > >-static inline GestureType toGestureType(UIWKGestureType gestureType) >+static inline WebKit::GestureType toGestureType(UIWKGestureType gestureType) > { > switch (gestureType) { > case UIWKGestureLoupe: >- return GestureType::Loupe; >+ return WebKit::GestureType::Loupe; > case UIWKGestureOneFingerTap: >- return GestureType::OneFingerTap; >+ return WebKit::GestureType::OneFingerTap; > case UIWKGestureTapAndAHalf: >- return GestureType::TapAndAHalf; >+ return WebKit::GestureType::TapAndAHalf; > case UIWKGestureDoubleTap: >- return GestureType::DoubleTap; >+ return WebKit::GestureType::DoubleTap; > case UIWKGestureTapAndHalf: >- return GestureType::TapAndHalf; >+ return WebKit::GestureType::TapAndHalf; > case UIWKGestureDoubleTapInUneditable: >- return GestureType::DoubleTapInUneditable; >+ return WebKit::GestureType::DoubleTapInUneditable; > case UIWKGestureOneFingerTapInUneditable: >- return GestureType::OneFingerTapInUneditable; >+ return WebKit::GestureType::OneFingerTapInUneditable; > case UIWKGestureOneFingerTapSelectsAll: >- return GestureType::OneFingerTapSelectsAll; >+ return WebKit::GestureType::OneFingerTapSelectsAll; > case UIWKGestureOneFingerDoubleTap: >- return GestureType::OneFingerDoubleTap; >+ return WebKit::GestureType::OneFingerDoubleTap; > case UIWKGestureOneFingerTripleTap: >- return GestureType::OneFingerTripleTap; >+ return WebKit::GestureType::OneFingerTripleTap; > case UIWKGestureTwoFingerSingleTap: >- return GestureType::TwoFingerSingleTap; >+ return WebKit::GestureType::TwoFingerSingleTap; > case UIWKGestureTwoFingerRangedSelectGesture: >- return GestureType::TwoFingerRangedSelectGesture; >+ return WebKit::GestureType::TwoFingerRangedSelectGesture; > case UIWKGestureTapOnLinkWithGesture: >- return GestureType::TapOnLinkWithGesture; >+ return WebKit::GestureType::TapOnLinkWithGesture; > case UIWKGestureMakeWebSelection: >- return GestureType::MakeWebSelection; >+ return WebKit::GestureType::MakeWebSelection; > case UIWKGesturePhraseBoundary: >- return GestureType::PhraseBoundary; >+ return WebKit::GestureType::PhraseBoundary; > } > ASSERT_NOT_REACHED(); >- return GestureType::Loupe; >+ return WebKit::GestureType::Loupe; > } > >-static inline UIWKGestureType toUIWKGestureType(GestureType gestureType) >+static inline UIWKGestureType toUIWKGestureType(WebKit::GestureType gestureType) > { > switch (gestureType) { >- case GestureType::Loupe: >+ case WebKit::GestureType::Loupe: > return UIWKGestureLoupe; >- case GestureType::OneFingerTap: >+ case WebKit::GestureType::OneFingerTap: > return UIWKGestureOneFingerTap; >- case GestureType::TapAndAHalf: >+ case WebKit::GestureType::TapAndAHalf: > return UIWKGestureTapAndAHalf; >- case GestureType::DoubleTap: >+ case WebKit::GestureType::DoubleTap: > return UIWKGestureDoubleTap; >- case GestureType::TapAndHalf: >+ case WebKit::GestureType::TapAndHalf: > return UIWKGestureTapAndHalf; >- case GestureType::DoubleTapInUneditable: >+ case WebKit::GestureType::DoubleTapInUneditable: > return UIWKGestureDoubleTapInUneditable; >- case GestureType::OneFingerTapInUneditable: >+ case WebKit::GestureType::OneFingerTapInUneditable: > return UIWKGestureOneFingerTapInUneditable; >- case GestureType::OneFingerTapSelectsAll: >+ case WebKit::GestureType::OneFingerTapSelectsAll: > return UIWKGestureOneFingerTapSelectsAll; >- case GestureType::OneFingerDoubleTap: >+ case WebKit::GestureType::OneFingerDoubleTap: > return UIWKGestureOneFingerDoubleTap; >- case GestureType::OneFingerTripleTap: >+ case WebKit::GestureType::OneFingerTripleTap: > return UIWKGestureOneFingerTripleTap; >- case GestureType::TwoFingerSingleTap: >+ case WebKit::GestureType::TwoFingerSingleTap: > return UIWKGestureTwoFingerSingleTap; >- case GestureType::TwoFingerRangedSelectGesture: >+ case WebKit::GestureType::TwoFingerRangedSelectGesture: > return UIWKGestureTwoFingerRangedSelectGesture; >- case GestureType::TapOnLinkWithGesture: >+ case WebKit::GestureType::TapOnLinkWithGesture: > return UIWKGestureTapOnLinkWithGesture; >- case GestureType::MakeWebSelection: >+ case WebKit::GestureType::MakeWebSelection: > return UIWKGestureMakeWebSelection; >- case GestureType::PhraseBoundary: >+ case WebKit::GestureType::PhraseBoundary: > return UIWKGesturePhraseBoundary; > } > } > >-static inline SelectionTouch toSelectionTouch(UIWKSelectionTouch touch) >+static inline WebKit::SelectionTouch toSelectionTouch(UIWKSelectionTouch touch) > { > switch (touch) { > case UIWKSelectionTouchStarted: >- return SelectionTouch::Started; >+ return WebKit::SelectionTouch::Started; > case UIWKSelectionTouchMoved: >- return SelectionTouch::Moved; >+ return WebKit::SelectionTouch::Moved; > case UIWKSelectionTouchEnded: >- return SelectionTouch::Ended; >+ return WebKit::SelectionTouch::Ended; > case UIWKSelectionTouchEndedMovingForward: >- return SelectionTouch::EndedMovingForward; >+ return WebKit::SelectionTouch::EndedMovingForward; > case UIWKSelectionTouchEndedMovingBackward: >- return SelectionTouch::EndedMovingBackward; >+ return WebKit::SelectionTouch::EndedMovingBackward; > case UIWKSelectionTouchEndedNotMoving: >- return SelectionTouch::EndedNotMoving; >+ return WebKit::SelectionTouch::EndedNotMoving; > } > ASSERT_NOT_REACHED(); >- return SelectionTouch::Ended; >+ return WebKit::SelectionTouch::Ended; > } > >-static inline UIWKSelectionTouch toUIWKSelectionTouch(SelectionTouch touch) >+static inline UIWKSelectionTouch toUIWKSelectionTouch(WebKit::SelectionTouch touch) > { > switch (touch) { >- case SelectionTouch::Started: >+ case WebKit::SelectionTouch::Started: > return UIWKSelectionTouchStarted; >- case SelectionTouch::Moved: >+ case WebKit::SelectionTouch::Moved: > return UIWKSelectionTouchMoved; >- case SelectionTouch::Ended: >+ case WebKit::SelectionTouch::Ended: > return UIWKSelectionTouchEnded; >- case SelectionTouch::EndedMovingForward: >+ case WebKit::SelectionTouch::EndedMovingForward: > return UIWKSelectionTouchEndedMovingForward; >- case SelectionTouch::EndedMovingBackward: >+ case WebKit::SelectionTouch::EndedMovingBackward: > return UIWKSelectionTouchEndedMovingBackward; >- case SelectionTouch::EndedNotMoving: >+ case WebKit::SelectionTouch::EndedNotMoving: > return UIWKSelectionTouchEndedNotMoving; > } > } > >-static inline GestureRecognizerState toGestureRecognizerState(UIGestureRecognizerState state) >+static inline WebKit::GestureRecognizerState toGestureRecognizerState(UIGestureRecognizerState state) > { > switch (state) { > case UIGestureRecognizerStatePossible: >- return GestureRecognizerState::Possible; >+ return WebKit::GestureRecognizerState::Possible; > case UIGestureRecognizerStateBegan: >- return GestureRecognizerState::Began; >+ return WebKit::GestureRecognizerState::Began; > case UIGestureRecognizerStateChanged: >- return GestureRecognizerState::Changed; >+ return WebKit::GestureRecognizerState::Changed; > case UIGestureRecognizerStateCancelled: >- return GestureRecognizerState::Cancelled; >+ return WebKit::GestureRecognizerState::Cancelled; > case UIGestureRecognizerStateEnded: >- return GestureRecognizerState::Ended; >+ return WebKit::GestureRecognizerState::Ended; > case UIGestureRecognizerStateFailed: >- return GestureRecognizerState::Failed; >+ return WebKit::GestureRecognizerState::Failed; > } > } > >-static inline UIGestureRecognizerState toUIGestureRecognizerState(GestureRecognizerState state) >+static inline UIGestureRecognizerState toUIGestureRecognizerState(WebKit::GestureRecognizerState state) > { > switch (state) { >- case GestureRecognizerState::Possible: >+ case WebKit::GestureRecognizerState::Possible: > return UIGestureRecognizerStatePossible; >- case GestureRecognizerState::Began: >+ case WebKit::GestureRecognizerState::Began: > return UIGestureRecognizerStateBegan; >- case GestureRecognizerState::Changed: >+ case WebKit::GestureRecognizerState::Changed: > return UIGestureRecognizerStateChanged; >- case GestureRecognizerState::Cancelled: >+ case WebKit::GestureRecognizerState::Cancelled: > return UIGestureRecognizerStateCancelled; >- case GestureRecognizerState::Ended: >+ case WebKit::GestureRecognizerState::Ended: > return UIGestureRecognizerStateEnded; >- case GestureRecognizerState::Failed: >+ case WebKit::GestureRecognizerState::Failed: > return UIGestureRecognizerStateFailed; > } > } > >-static inline UIWKSelectionFlags toUIWKSelectionFlags(SelectionFlags flags) >+static inline UIWKSelectionFlags toUIWKSelectionFlags(WebKit::SelectionFlags flags) > { > NSInteger uiFlags = UIWKNone; >- if (flags & WordIsNearTap) >+ if (flags & WebKit::WordIsNearTap) > uiFlags |= UIWKWordIsNearTap; >- if (flags & PhraseBoundaryChanged) >+ if (flags & WebKit::PhraseBoundaryChanged) > uiFlags |= UIWKPhraseBoundaryChanged; > > return static_cast<UIWKSelectionFlags>(uiFlags); >@@ -2969,17 +2968,17 @@ > { > switch (granularity) { > case UITextGranularityCharacter: >- return CharacterGranularity; >+ return WebCore::CharacterGranularity; > case UITextGranularityWord: >- return WordGranularity; >+ return WebCore::WordGranularity; > case UITextGranularitySentence: >- return SentenceGranularity; >+ return WebCore::SentenceGranularity; > case UITextGranularityParagraph: >- return ParagraphGranularity; >+ return WebCore::ParagraphGranularity; > case UITextGranularityLine: >- return LineGranularity; >+ return WebCore::LineGranularity; > case UITextGranularityDocument: >- return DocumentGranularity; >+ return WebCore::DocumentGranularity; > } > } > >@@ -2988,14 +2987,14 @@ > switch (direction) { > case UITextLayoutDirectionDown: > case UITextLayoutDirectionRight: >- return DirectionRight; >+ return WebCore::DirectionRight; > case UITextLayoutDirectionUp: > case UITextLayoutDirectionLeft: >- return DirectionLeft; >+ return WebCore::DirectionLeft; > default: > // UITextDirection is not an enum, but we only want to accept values from UITextLayoutDirection. > ASSERT_NOT_REACHED(); >- return DirectionRight; >+ return WebCore::DirectionRight; > } > } > >@@ -3005,7 +3004,7 @@ > ASSERT_NOT_REACHED(); > return; > } >- [(UIWKTextInteractionAssistant *)[view interactionAssistant] selectionChangedWithGestureAt:(CGPoint)point withGesture:toUIWKGestureType((GestureType)gestureType) withState:toUIGestureRecognizerState(static_cast<GestureRecognizerState>(gestureState)) withFlags:(toUIWKSelectionFlags((SelectionFlags)flags))]; >+ [(UIWKTextInteractionAssistant *)[view interactionAssistant] selectionChangedWithGestureAt:(CGPoint)point withGesture:toUIWKGestureType((WebKit::GestureType)gestureType) withState:toUIGestureRecognizerState(static_cast<WebKit::GestureRecognizerState>(gestureState)) withFlags:(toUIWKSelectionFlags((WebKit::SelectionFlags)flags))]; > } > > static void selectionChangedWithTouch(WKContentView *view, const WebCore::IntPoint& point, uint32_t touch, uint32_t flags, WebKit::CallbackBase::Error error) >@@ -3014,7 +3013,7 @@ > ASSERT_NOT_REACHED(); > return; > } >- [(UIWKTextInteractionAssistant *)[view interactionAssistant] selectionChangedWithTouchAt:(CGPoint)point withSelectionTouch:toUIWKSelectionTouch((SelectionTouch)touch) withFlags:static_cast<UIWKSelectionFlags>(flags)]; >+ [(UIWKTextInteractionAssistant *)[view interactionAssistant] selectionChangedWithTouchAt:(CGPoint)point withSelectionTouch:toUIWKSelectionTouch((WebKit::SelectionTouch)touch) withFlags:static_cast<UIWKSelectionFlags>(flags)]; > } > > - (BOOL)_isInteractingWithAssistedNode >@@ -3030,7 +3029,7 @@ > - (void)changeSelectionWithGestureAt:(CGPoint)point withGesture:(UIWKGestureType)gestureType withState:(UIGestureRecognizerState)state withFlags:(UIWKSelectionFlags)flags > { > _usingGestureForSelection = YES; >- _page->selectWithGesture(WebCore::IntPoint(point), CharacterGranularity, static_cast<uint32_t>(toGestureType(gestureType)), static_cast<uint32_t>(toGestureRecognizerState(state)), [self _isInteractingWithAssistedNode], [self, state, flags](const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t innerFlags, WebKit::CallbackBase::Error error) { >+ _page->selectWithGesture(WebCore::IntPoint(point), WebCore::CharacterGranularity, static_cast<uint32_t>(toGestureType(gestureType)), static_cast<uint32_t>(toGestureRecognizerState(state)), [self _isInteractingWithAssistedNode], [self, state, flags](const WebCore::IntPoint& point, uint32_t gestureType, uint32_t gestureState, uint32_t innerFlags, WebKit::CallbackBase::Error error) { > selectionChangedWithGesture(self, point, gestureType, gestureState, flags | innerFlags, error); > if (state == UIGestureRecognizerStateEnded || state == UIGestureRecognizerStateCancelled) > _usingGestureForSelection = NO; >@@ -3069,7 +3068,7 @@ > }); > } > >-- (const WKAutoCorrectionData&)autocorrectionData >+- (const WebKit::WKAutoCorrectionData&)autocorrectionData > { > return _autocorrectionData; > } >@@ -3084,7 +3083,7 @@ > > RetainPtr<WKContentView> view = self; > _autocorrectionData.autocorrectionHandler = [completionHandler copy]; >- _page->requestAutocorrectionData(input, [view](const Vector<FloatRect>& rects, const String& fontName, double fontSize, uint64_t traits, WebKit::CallbackBase::Error) { >+ _page->requestAutocorrectionData(input, [view](const Vector<WebCore::FloatRect>& rects, const String& fontName, double fontSize, uint64_t traits, WebKit::CallbackBase::Error) { > CGRect firstRect = CGRectZero; > CGRect lastRect = CGRectZero; > if (rects.size()) { >@@ -3324,7 +3323,7 @@ > auto completionHandlerCopy = Block_copy(completionHandler); > RetainPtr<WKContentView> view = self; > _page->setInitialFocus(selectingForward, false, WebKit::WebKeyboardEvent(), [view, completionHandlerCopy](WebKit::CallbackBase::Error) { >- BOOL didBecomeFirstResponder = view->_assistedNodeInformation.elementType != InputType::None && [view becomeFirstResponder]; >+ BOOL didBecomeFirstResponder = view->_assistedNodeInformation.elementType != WebKit::InputType::None && [view becomeFirstResponder]; > completionHandlerCopy(didBecomeFirstResponder); > Block_release(completionHandlerCopy); > }); >@@ -3375,10 +3374,10 @@ > [_formAccessoryView setClearVisible:NO]; > else { > switch (_assistedNodeInformation.elementType) { >- case InputType::Date: >- case InputType::Month: >- case InputType::DateTimeLocal: >- case InputType::Time: >+ case WebKit::InputType::Date: >+ case WebKit::InputType::Month: >+ case WebKit::InputType::DateTimeLocal: >+ case WebKit::InputType::Time: > [_formAccessoryView setClearVisible:YES]; > break; > default: >@@ -3444,8 +3443,8 @@ > return nil; > > auto& postLayoutEditorStateData = _page->editorState().postLayoutData(); >- FloatRect startRect = postLayoutEditorStateData.caretRectAtStart; >- FloatRect endRect = postLayoutEditorStateData.caretRectAtEnd; >+ WebCore::FloatRect startRect = postLayoutEditorStateData.caretRectAtStart; >+ WebCore::FloatRect endRect = postLayoutEditorStateData.caretRectAtEnd; > double inverseScale = [self inverseScale]; > // We want to keep the original caret width, while the height scales with > // the content taking orientation into account. >@@ -3524,7 +3523,7 @@ > - (void)setMarkedText:(NSString *)markedText selectedRange:(NSRange)selectedRange > { > _markedText = markedText; >- _page->setCompositionAsync(markedText, Vector<WebCore::CompositionUnderline>(), selectedRange, EditingRange()); >+ _page->setCompositionAsync(markedText, Vector<WebCore::CompositionUnderline>(), selectedRange, WebKit::EditingRange()); > } > > - (void)unmarkText >@@ -3588,18 +3587,18 @@ > return NSWritingDirectionLeftToRight; > } > >-static WritingDirection coreWritingDirection(NSWritingDirection direction) >+static WebKit::WritingDirection coreWritingDirection(NSWritingDirection direction) > { > switch (direction) { > case NSWritingDirectionNatural: >- return WritingDirection::Natural; >+ return WebCore::WritingDirection::Natural; > case NSWritingDirectionLeftToRight: >- return WritingDirection::LeftToRight; >+ return WebCore::WritingDirection::LeftToRight; > case NSWritingDirectionRightToLeft: >- return WritingDirection::RightToLeft; >+ return WebCore::WritingDirection::RightToLeft; > default: > ASSERT_NOT_REACHED(); >- return WritingDirection::Natural; >+ return WebCore::WritingDirection::Natural; > } > } > >@@ -3621,7 +3620,7 @@ > - (UITextPosition *)closestPositionToPoint:(CGPoint)point > { > #if PLATFORM(IOSMAC) >- InteractionInformationRequest request(roundedIntPoint(point)); >+ WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(point)); > [self requestAsynchronousPositionInformationUpdate:request]; > if ([self _currentPositionInformationIsApproximatelyValidForRequest:request] && _positionInformation.isSelectable) > return [WKTextPosition textPositionWithRect:_positionInformation.caretRect]; >@@ -3647,7 +3646,7 @@ > // Inserts the given string, replacing any selected or marked text. > - (void)insertText:(NSString *)aStringValue > { >- _page->insertTextAsync(aStringValue, EditingRange()); >+ _page->insertTextAsync(aStringValue, WebKit::EditingRange()); > } > > - (BOOL)hasText >@@ -3767,13 +3766,13 @@ > if (!_traits) > _traits = adoptNS([[UITextInputTraits alloc] init]); > >- [_traits setSecureTextEntry:_assistedNodeInformation.elementType == InputType::Password || [_formInputSession forceSecureTextEntry]]; >- [_traits setShortcutConversionType:_assistedNodeInformation.elementType == InputType::Password ? UITextShortcutConversionTypeNo : UITextShortcutConversionTypeDefault]; >+ [_traits setSecureTextEntry:_assistedNodeInformation.elementType == WebKit::InputType::Password || [_formInputSession forceSecureTextEntry]]; >+ [_traits setShortcutConversionType:_assistedNodeInformation.elementType == WebKit::InputType::Password ? UITextShortcutConversionTypeNo : UITextShortcutConversionTypeDefault]; > > if (!_assistedNodeInformation.formAction.isEmpty()) >- [_traits setReturnKeyType:(_assistedNodeInformation.elementType == InputType::Search) ? UIReturnKeySearch : UIReturnKeyGo]; >+ [_traits setReturnKeyType:(_assistedNodeInformation.elementType == WebKit::InputType::Search) ? UIReturnKeySearch : UIReturnKeyGo]; > >- if (_assistedNodeInformation.elementType == InputType::Password || _assistedNodeInformation.elementType == InputType::Email || _assistedNodeInformation.elementType == InputType::URL || _assistedNodeInformation.formAction.contains("login")) { >+ if (_assistedNodeInformation.elementType == WebKit::InputType::Password || _assistedNodeInformation.elementType == WebKit::InputType::Email || _assistedNodeInformation.elementType == WebKit::InputType::URL || _assistedNodeInformation.formAction.contains("login")) { > [_traits setAutocapitalizationType:UITextAutocapitalizationTypeNone]; > [_traits setAutocorrectionType:UITextAutocorrectionTypeNo]; > } else { >@@ -3782,64 +3781,64 @@ > } > > switch (_assistedNodeInformation.inputMode) { >- case InputMode::Unspecified: >+ case WebCore::InputMode::Unspecified: > switch (_assistedNodeInformation.elementType) { >- case InputType::Phone: >+ case WebKit::InputType::Phone: > [_traits setKeyboardType:UIKeyboardTypePhonePad]; > break; >- case InputType::URL: >+ case WebKit::InputType::URL: > [_traits setKeyboardType:UIKeyboardTypeURL]; > break; >- case InputType::Email: >+ case WebKit::InputType::Email: > [_traits setKeyboardType:UIKeyboardTypeEmailAddress]; > break; >- case InputType::Number: >+ case WebKit::InputType::Number: > [_traits setKeyboardType:UIKeyboardTypeNumbersAndPunctuation]; > break; >- case InputType::NumberPad: >+ case WebKit::InputType::NumberPad: > [_traits setKeyboardType:UIKeyboardTypeNumberPad]; > break; >- case InputType::None: >- case InputType::ContentEditable: >- case InputType::Text: >- case InputType::Password: >- case InputType::TextArea: >- case InputType::Search: >- case InputType::Date: >- case InputType::DateTime: >- case InputType::DateTimeLocal: >- case InputType::Month: >- case InputType::Week: >- case InputType::Time: >- case InputType::Select: >- case InputType::Drawing: >+ case WebKit::InputType::None: >+ case WebKit::InputType::ContentEditable: >+ case WebKit::InputType::Text: >+ case WebKit::InputType::Password: >+ case WebKit::InputType::TextArea: >+ case WebKit::InputType::Search: >+ case WebKit::InputType::Date: >+ case WebKit::InputType::DateTime: >+ case WebKit::InputType::DateTimeLocal: >+ case WebKit::InputType::Month: >+ case WebKit::InputType::Week: >+ case WebKit::InputType::Time: >+ case WebKit::InputType::Select: >+ case WebKit::InputType::Drawing: > #if ENABLE(INPUT_TYPE_COLOR) >- case InputType::Color: >+ case WebKit::InputType::Color: > #endif > [_traits setKeyboardType:UIKeyboardTypeDefault]; > } > break; >- case InputMode::None: >+ case WebCore::InputMode::None: > break; >- case InputMode::Text: >+ case WebCore::InputMode::Text: > [_traits setKeyboardType:UIKeyboardTypeDefault]; > break; >- case InputMode::Telephone: >+ case WebCore::InputMode::Telephone: > [_traits setKeyboardType:UIKeyboardTypePhonePad]; > break; >- case InputMode::Url: >+ case WebCore::InputMode::Url: > [_traits setKeyboardType:UIKeyboardTypeURL]; > break; >- case InputMode::Email: >+ case WebCore::InputMode::Email: > [_traits setKeyboardType:UIKeyboardTypeEmailAddress]; > break; >- case InputMode::Numeric: >+ case WebCore::InputMode::Numeric: > [_traits setKeyboardType:UIKeyboardTypeNumbersAndPunctuation]; > break; >- case InputMode::Decimal: >+ case WebCore::InputMode::Decimal: > [_traits setKeyboardType:UIKeyboardTypeDecimalPad]; > break; >- case InputMode::Search: >+ case WebCore::InputMode::Search: > [_traits setKeyboardType:UIKeyboardTypeWebSearch]; > break; > } >@@ -3931,13 +3930,13 @@ > > - (void)handleKeyWebEvent:(::WebEvent *)theEvent > { >- _page->handleKeyboardEvent(NativeWebKeyboardEvent(theEvent)); >+ _page->handleKeyboardEvent(WebKit::NativeWebKeyboardEvent(theEvent)); > } > > - (void)handleKeyWebEvent:(::WebEvent *)theEvent withCompletionHandler:(void (^)(::WebEvent *theEvent, BOOL wasHandled))completionHandler > { > _keyWebEventHandler = makeBlockPtr(completionHandler); >- _page->handleKeyboardEvent(NativeWebKeyboardEvent(theEvent)); >+ _page->handleKeyboardEvent(WebKit::NativeWebKeyboardEvent(theEvent)); > } > > - (void)_didHandleKeyEvent:(::WebEvent *)event eventWasHandled:(BOOL)eventWasHandled >@@ -4041,20 +4040,20 @@ > if (_page->editorState().isContentEditable) > return NO; > >- if (_assistedNodeInformation.elementType == InputType::Select) >+ if (_assistedNodeInformation.elementType == WebKit::InputType::Select) > return NO; > > return YES; > } > >-- (CGFloat)keyboardScrollViewAnimator:(WKKeyboardScrollViewAnimator *)animator distanceForIncrement:(ScrollingIncrement)increment >+- (CGFloat)keyboardScrollViewAnimator:(WKKeyboardScrollViewAnimator *)animator distanceForIncrement:(WebKit::ScrollingIncrement)increment > { > switch (increment) { >- case ScrollingIncrement::Document: >+ case WebKit::ScrollingIncrement::Document: > return [self convertRect:self.bounds toView:_webView].size.height; >- case ScrollingIncrement::Page: >+ case WebKit::ScrollingIncrement::Page: > return [self convertSize:CGSizeMake(0, WebCore::Scrollbar::pageStep(_page->unobscuredContentRect().height(), self.bounds.size.height)) toView:_webView].height; >- case ScrollingIncrement::Line: >+ case WebKit::ScrollingIncrement::Line: > return [self convertSize:CGSizeMake(0, WebCore::Scrollbar::pixelsPerLineStep()) toView:_webView].height; > } > ASSERT_NOT_REACHED(); >@@ -4310,12 +4309,12 @@ > [_textSelectionAssistant deactivateSelection]; > } > >-- (const AssistedNodeInformation&)assistedNodeInformation >+- (const WebKit::AssistedNodeInformation&)assistedNodeInformation > { > return _assistedNodeInformation; > } > >-- (Vector<OptionItem>&)assistedNodeSelectOptions >+- (Vector<WebKit::OptionItem>&)assistedNodeSelectOptions > { > return _assistedNodeInformation.selectOptions; > } >@@ -4326,33 +4325,33 @@ > return _formAccessoryView.get(); > } > >-static bool isAssistableInputType(InputType type) >+static bool isAssistableInputType(WebKit::InputType type) > { > switch (type) { >- case InputType::ContentEditable: >- case InputType::Text: >- case InputType::Password: >- case InputType::TextArea: >- case InputType::Search: >- case InputType::Email: >- case InputType::URL: >- case InputType::Phone: >- case InputType::Number: >- case InputType::NumberPad: >- case InputType::Date: >- case InputType::DateTime: >- case InputType::DateTimeLocal: >- case InputType::Month: >- case InputType::Week: >- case InputType::Time: >- case InputType::Select: >- case InputType::Drawing: >+ case WebKit::InputType::ContentEditable: >+ case WebKit::InputType::Text: >+ case WebKit::InputType::Password: >+ case WebKit::InputType::TextArea: >+ case WebKit::InputType::Search: >+ case WebKit::InputType::Email: >+ case WebKit::InputType::URL: >+ case WebKit::InputType::Phone: >+ case WebKit::InputType::Number: >+ case WebKit::InputType::NumberPad: >+ case WebKit::InputType::Date: >+ case WebKit::InputType::DateTime: >+ case WebKit::InputType::DateTimeLocal: >+ case WebKit::InputType::Month: >+ case WebKit::InputType::Week: >+ case WebKit::InputType::Time: >+ case WebKit::InputType::Select: >+ case WebKit::InputType::Drawing: > #if ENABLE(INPUT_TYPE_COLOR) >- case InputType::Color: >+ case WebKit::InputType::Color: > #endif > return true; > >- case InputType::None: >+ case WebKit::InputType::None: > return false; > } > >@@ -4360,7 +4359,7 @@ > return false; > } > >-- (void)_startAssistingNode:(const AssistedNodeInformation&)information userIsInteracting:(BOOL)userIsInteracting blurPreviousNode:(BOOL)blurPreviousNode changingActivityState:(BOOL)changingActivityState userObject:(NSObject <NSSecureCoding> *)userObject >+- (void)_startAssistingNode:(const WebKit::AssistedNodeInformation&)information userIsInteracting:(BOOL)userIsInteracting blurPreviousNode:(BOOL)blurPreviousNode changingActivityState:(BOOL)changingActivityState userObject:(NSObject <NSSecureCoding> *)userObject > { > SetForScope<BOOL> isChangingFocusForScope { _isChangingFocus, hasAssistedNode(_assistedNodeInformation) }; > _inputViewUpdateDeferrer = nullptr; >@@ -4382,9 +4381,9 @@ > startInputSessionPolicy = [inputDelegate _webView:_webView decidePolicyForFocusedElement:focusedElementInfo.get()]; > > if (information.elementIsTransparent) >- [self _beginSuppressingSelectionAssistantForReason:FocusedElementIsTransparent]; >+ [self _beginSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; > else >- [self _stopSuppressingSelectionAssistantForReason:FocusedElementIsTransparent]; >+ [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; > > switch (startInputSessionPolicy) { > case _WKFocusStartsInputSessionPolicyAuto: >@@ -4460,13 +4459,13 @@ > #endif > > switch (information.elementType) { >- case InputType::Select: >- case InputType::DateTimeLocal: >- case InputType::Time: >- case InputType::Month: >- case InputType::Date: >+ case WebKit::InputType::Select: >+ case WebKit::InputType::DateTimeLocal: >+ case WebKit::InputType::Time: >+ case WebKit::InputType::Month: >+ case WebKit::InputType::Date: > #if ENABLE(INPUT_TYPE_COLOR) >- case InputType::Color: >+ case WebKit::InputType::Color: > #endif > break; > default: >@@ -4508,7 +4507,7 @@ > > BOOL editableChanged = [self setIsEditable:NO]; > >- _assistedNodeInformation.elementType = InputType::None; >+ _assistedNodeInformation.elementType = WebKit::InputType::None; > _inputPeripheral = nil; > _focusRequiresStrongPasswordAssistance = NO; > >@@ -4529,7 +4528,7 @@ > > [_webView didEndFormControlInteraction]; > >- [self _stopSuppressingSelectionAssistantForReason:FocusedElementIsTransparent]; >+ [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; > } > > - (void)_didReceiveEditorStateUpdateAfterFocus >@@ -4554,7 +4553,7 @@ > WeakObjCPtr<WKContentView> weakSelf { self }; > auto identifierBeforeUpdate = _assistedNodeInformation.assistedNodeIdentifier; > _page->requestAssistedNodeInformation([callback = WTFMove(callback), identifierBeforeUpdate, weakSelf] (auto& info, auto error) { >- if (!weakSelf || error != CallbackBase::Error::None || info.assistedNodeIdentifier != identifierBeforeUpdate) { >+ if (!weakSelf || error != WebKit::CallbackBase::Error::None || info.assistedNodeIdentifier != identifierBeforeUpdate) { > // If the assisted node may have changed in the meantime, don't overwrite assisted node information. > callback(false); > return; >@@ -4613,19 +4612,19 @@ > BOOL prefersModalPresentation = NO; > > switch (_assistedNodeInformation.elementType) { >- case InputType::Select: >+ case WebKit::InputType::Select: > _presentedFullScreenInputViewController = adoptNS([[WKSelectMenuListViewController alloc] initWithDelegate:self]); > break; >- case InputType::Time: >+ case WebKit::InputType::Time: > // Time inputs are special, in that the only UI affordances for dismissal are push buttons rather than status bar chevrons. > // As such, modal presentation and dismissal is preferred even if a navigation stack exists. > prefersModalPresentation = YES; > _presentedFullScreenInputViewController = adoptNS([[WKTimePickerViewController alloc] initWithDelegate:self]); > break; >- case InputType::Date: >+ case WebKit::InputType::Date: > _presentedFullScreenInputViewController = adoptNS([[WKDatePickerViewController alloc] initWithDelegate:self]); > break; >- case InputType::None: >+ case WebKit::InputType::None: > break; > default: > _presentedFullScreenInputViewController = adoptNS([[WKTextInputListViewController alloc] initWithDelegate:self]); >@@ -4744,14 +4743,14 @@ > return nil; > > switch (_assistedNodeInformation.elementType) { >- case InputType::Select: >- case InputType::Time: >- case InputType::Date: >+ case WebKit::InputType::Select: >+ case WebKit::InputType::Time: >+ case WebKit::InputType::Date: > #if ENABLE(INPUT_TYPE_COLOR) >- case InputType::Color: >+ case WebKit::InputType::Color: > #endif > return nil; >- case InputType::Search: >+ case WebKit::InputType::Search: > return formControlSearchButtonTitle(); > default: > return formControlGoButtonTitle(); >@@ -4869,7 +4868,7 @@ > > - (void)selectWordForReplacement > { >- _page->extendSelection(WordGranularity); >+ _page->extendSelection(WebCore::WordGranularity); > } > > - (void)_updateChangedSelection >@@ -4886,12 +4885,12 @@ > auto& postLayoutData = state.postLayoutData(); > if (hasAssistedNode(_assistedNodeInformation)) { > if (postLayoutData.elementIsTransparent) >- [self _beginSuppressingSelectionAssistantForReason:FocusedElementIsTransparent]; >+ [self _beginSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; > else >- [self _stopSuppressingSelectionAssistantForReason:FocusedElementIsTransparent]; >+ [self _stopSuppressingSelectionAssistantForReason:WebKit::FocusedElementIsTransparent]; > } > >- WKSelectionDrawingInfo selectionDrawingInfo(_page->editorState()); >+ WebKit::WKSelectionDrawingInfo selectionDrawingInfo(_page->editorState()); > if (force || selectionDrawingInfo != _lastSelectionDrawingInfo) { > LOG_WITH_STREAM(Selection, stream << "_updateChangedSelection " << selectionDrawingInfo); > >@@ -4928,7 +4927,7 @@ > return !!_suppressSelectionAssistantReasons; > } > >-- (void)_beginSuppressingSelectionAssistantForReason:(SuppressSelectionAssistantReason)reason >+- (void)_beginSuppressingSelectionAssistantForReason:(WebKit::SuppressSelectionAssistantReason)reason > { > bool wasSuppressingSelectionAssistant = !!_suppressSelectionAssistantReasons; > _suppressSelectionAssistantReasons.add(reason); >@@ -4937,7 +4936,7 @@ > [_textSelectionAssistant deactivateSelection]; > } > >-- (void)_stopSuppressingSelectionAssistantForReason:(SuppressSelectionAssistantReason)reason >+- (void)_stopSuppressingSelectionAssistantForReason:(WebKit::SuppressSelectionAssistantReason)reason > { > bool wasSuppressingSelectionAssistant = !!_suppressSelectionAssistantReasons; > _suppressSelectionAssistantReasons.remove(reason); >@@ -5002,7 +5001,7 @@ > [inputDelegate setSuggestions:nil]; > } > >-- (void)_showPlaybackTargetPicker:(BOOL)hasVideo fromRect:(const IntRect&)elementRect routeSharingPolicy:(WebCore::RouteSharingPolicy)routeSharingPolicy routingContextUID:(NSString *)routingContextUID >+- (void)_showPlaybackTargetPicker:(BOOL)hasVideo fromRect:(const WebCore::IntRect&)elementRect routeSharingPolicy:(WebCore::RouteSharingPolicy)routeSharingPolicy routingContextUID:(NSString *)routingContextUID > { > #if ENABLE(AIRPLAY_PICKER) > #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000 && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) >@@ -5017,7 +5016,7 @@ > #endif > } > >-- (void)_showRunOpenPanel:(API::OpenPanelParameters*)parameters resultListener:(WebOpenPanelResultListenerProxy*)listener >+- (void)_showRunOpenPanel:(API::OpenPanelParameters*)parameters resultListener:(WebKit::WebOpenPanelResultListenerProxy*)listener > { > ASSERT(!_fileUploadPanel); > if (_fileUploadPanel) >@@ -5043,7 +5042,7 @@ > _fileUploadPanel = nil; > } > >-- (void)_showShareSheet:(const ShareDataWithParsedURL&)data completionHandler:(CompletionHandler<void(bool)>&&)completionHandler >+- (void)_showShareSheet:(const WebCore::ShareDataWithParsedURL&)data completionHandler:(CompletionHandler<void(bool)>&&)completionHandler > { > #if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV) > if (_shareSheet) >@@ -5122,7 +5121,7 @@ > > - (std::optional<WebKit::InteractionInformationAtPosition>)positionInformationForActionSheetAssistant:(WKActionSheetAssistant *)assistant > { >- InteractionInformationRequest request(_positionInformation.request.point); >+ WebKit::InteractionInformationRequest request(_positionInformation.request.point); > request.includeSnapshot = true; > request.includeLinkIndicator = assistant.needsLinkIndicator; > if (![self ensurePositionInformationIsUpToDate:request]) >@@ -5134,7 +5133,7 @@ > - (void)updatePositionInformationForActionSheetAssistant:(WKActionSheetAssistant *)assistant > { > _hasValidPositionInformation = NO; >- InteractionInformationRequest request(_positionInformation.request.point); >+ WebKit::InteractionInformationRequest request(_positionInformation.request.point); > request.includeSnapshot = true; > request.includeLinkIndicator = assistant.needsLinkIndicator; > >@@ -5296,9 +5295,9 @@ > [self cleanUpDragSourceSessionState]; > } > >-- (void)_startDrag:(RetainPtr<CGImageRef>)image item:(const DragItem&)item >+- (void)_startDrag:(RetainPtr<CGImageRef>)image item:(const WebCore::DragItem&)item > { >- ASSERT(item.sourceAction != DragSourceActionNone); >+ ASSERT(item.sourceAction != WebCore::DragSourceActionNone); > > if (item.promisedAttachmentInfo) > [self _prepareToDragPromisedAttachment:item.promisedAttachmentInfo]; >@@ -5324,7 +5323,7 @@ > NSArray *dragItemsToAdd = [self _itemsForBeginningOrAddingToSessionWithRegistrationList:registrationList stagedDragSource:stagedDragSource]; > > RELEASE_LOG(DragAndDrop, "Drag session: %p adding %tu items", _dragDropInteractionState.dragSession(), dragItemsToAdd.count); >- _dragDropInteractionState.clearStagedDragSource(dragItemsToAdd.count ? DragDropInteractionState::DidBecomeActive::Yes : DragDropInteractionState::DidBecomeActive::No); >+ _dragDropInteractionState.clearStagedDragSource(dragItemsToAdd.count ? WebKit::DragDropInteractionState::DidBecomeActive::Yes : WebKit::DragDropInteractionState::DidBecomeActive::No); > > completion(dragItemsToAdd); > >@@ -5342,12 +5341,12 @@ > savedCompletionBlock(); > > if (!_dragDropInteractionState.dragSession().items.count) { >- auto positionForDragEnd = roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()); >+ auto positionForDragEnd = WebCore::roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()); > [self cleanUpDragSourceSessionState]; > if (started) { > // A client of the Objective C SPI or UIKit might have prevented the drag from beginning entirely in the UI process, in which case > // we need to balance the `dragstart` event with a `dragend`. >- _page->dragEnded(positionForDragEnd, positionForDragEnd, DragOperationNone); >+ _page->dragEnded(positionForDragEnd, positionForDragEnd, WebCore::DragOperationNone); > } > } > } >@@ -5365,25 +5364,25 @@ > *outGlobalPoint = locationInContentView; > } > >-static UIDropOperation dropOperationForWebCoreDragOperation(DragOperation operation) >+static UIDropOperation dropOperationForWebCoreDragOperation(WebCore::DragOperation operation) > { >- if (operation & DragOperationMove) >+ if (operation & WebCore::DragOperationMove) > return UIDropOperationMove; > >- if (operation & DragOperationCopy) >+ if (operation & WebCore::DragOperationCopy) > return UIDropOperationCopy; > > return UIDropOperationCancel; > } > >-- (DragData)dragDataForDropSession:(id <UIDropSession>)session dragDestinationAction:(WKDragDestinationAction)dragDestinationAction >+- (WebCore::DragData)dragDataForDropSession:(id <UIDropSession>)session dragDestinationAction:(WKDragDestinationAction)dragDestinationAction > { > CGPoint global; > CGPoint client; > [self computeClientAndGlobalPointsForDropSession:session outClientPoint:&client outGlobalPoint:&global]; > >- DragOperation dragOperationMask = static_cast<DragOperation>(session.allowsMoveOperation ? DragOperationEvery : (DragOperationEvery & ~DragOperationMove)); >- return { session, roundedIntPoint(client), roundedIntPoint(global), dragOperationMask, DragApplicationNone, static_cast<DragDestinationAction>(dragDestinationAction) }; >+ WebCore::DragOperation dragOperationMask = static_cast<WebCore::DragOperation>(session.allowsMoveOperation ? WebCore::DragOperationEvery : (WebCore::DragOperationEvery & ~WebCore::DragOperationMove)); >+ return { session, WebCore::roundedIntPoint(client), WebCore::roundedIntPoint(global), dragOperationMask, WebCore::DragApplicationNone, static_cast<WebCore::DragDestinationAction>(dragDestinationAction) }; > } > > - (void)cleanUpDragSourceSessionState >@@ -5426,7 +5425,7 @@ > return extractItemProvidersFromDragItems(session.items); > } > >-- (void)_didConcludeEditDataInteraction:(std::optional<TextIndicatorData>)data >+- (void)_didConcludeEditDataInteraction:(std::optional<WebCore::TextIndicatorData>)data > { > if (!data) > return; >@@ -5453,7 +5452,7 @@ > } completion:^(BOOL completed) { > [visibleContentViewSnapshot removeFromSuperview]; > [UIView animateWithDuration:0.25 animations:^() { >- [protectedSelf _stopSuppressingSelectionAssistantForReason:DropAnimationIsRunning]; >+ [protectedSelf _stopSuppressingSelectionAssistantForReason:WebKit::DropAnimationIsRunning]; > [unselectedContentSnapshot setAlpha:0]; > } completion:^(BOOL completed) { > [unselectedContentSnapshot removeFromSuperview]; >@@ -5470,13 +5469,13 @@ > [self.webViewUIDelegate _webView:_webView dataInteractionOperationWasHandled:handled forSession:dropSession itemProviders:[WebItemProviderPasteboard sharedInstance].itemProviders]; > > if (!_isAnimatingConcludeEditDrag) >- [self _stopSuppressingSelectionAssistantForReason:DropAnimationIsRunning]; >+ [self _stopSuppressingSelectionAssistantForReason:WebKit::DropAnimationIsRunning]; > > CGPoint global; > CGPoint client; > [self computeClientAndGlobalPointsForDropSession:dropSession outClientPoint:&client outGlobalPoint:&global]; > [self cleanUpDragSourceSessionState]; >- _page->dragEnded(roundedIntPoint(client), roundedIntPoint(global), _page->currentDragOperation()); >+ _page->dragEnded(WebCore::roundedIntPoint(client), WebCore::roundedIntPoint(global), _page->currentDragOperation()); > } > > - (void)_didChangeDataInteractionCaretRect:(CGRect)previousRect currentRect:(CGRect)rect >@@ -5501,7 +5500,7 @@ > [_editDropCaretView updateToPosition:[WKTextPosition textPositionWithRect:rect]]; > } > >-- (void)_prepareToDragPromisedAttachment:(const PromisedAttachmentInfo&)info >+- (void)_prepareToDragPromisedAttachment:(const WebCore::PromisedAttachmentInfo&)info > { > auto session = retainPtr(_dragDropInteractionState.dragSession()); > if (!session) { >@@ -5539,7 +5538,7 @@ > return; > } > >- NSString *temporaryBlobDirectory = FileSystem::createTemporaryDirectory(@"blobs"); >+ NSString *temporaryBlobDirectory = WebCore::FileSystem::createTemporaryDirectory(@"blobs"); > NSURL *destinationURL = [NSURL fileURLWithPath:[temporaryBlobDirectory stringByAppendingPathComponent:[NSUUID UUID].UUIDString] isDirectory:NO]; > > auto attachment = strongSelf->_page->attachmentForIdentifier(info.attachmentIdentifier); >@@ -5595,7 +5594,7 @@ > _shouldRestoreCalloutBarAfterDrop = NO; > } > >-- (NSArray<UIDragItem *> *)_itemsForBeginningOrAddingToSessionWithRegistrationList:(WebItemProviderRegistrationInfoList *)registrationList stagedDragSource:(const DragSourceState&)stagedDragSource >+- (NSArray<UIDragItem *> *)_itemsForBeginningOrAddingToSessionWithRegistrationList:(WebItemProviderRegistrationInfoList *)registrationList stagedDragSource:(const WebKit::DragSourceState&)stagedDragSource > { > NSItemProvider *defaultItemProvider = registrationList.itemProvider; > if (!defaultItemProvider) >@@ -5628,7 +5627,7 @@ > > - (NSDictionary *)_autofillContext > { >- BOOL provideStrongPasswordAssistance = _focusRequiresStrongPasswordAssistance && _assistedNodeInformation.elementType == InputType::Password; >+ BOOL provideStrongPasswordAssistance = _focusRequiresStrongPasswordAssistance && _assistedNodeInformation.elementType == WebKit::InputType::Password; > if (!hasAssistedNode(_assistedNodeInformation) || (!_assistedNodeInformation.acceptsAutofilledLoginCredentials && !provideStrongPasswordAssistance)) > return nil; > >@@ -5673,7 +5672,7 @@ > } > > _dragDropInteractionState.dragSessionWillRequestAdditionalItem(completion); >- _page->requestAdditionalItemsForDragSession(roundedIntPoint(point), roundedIntPoint(point)); >+ _page->requestAdditionalItemsForDragSession(WebCore::roundedIntPoint(point), WebCore::roundedIntPoint(point)); > } > > - (void)_dragInteraction:(UIDragInteraction *)interaction prepareForSession:(id <UIDragSession>)session completion:(dispatch_block_t)completion >@@ -5692,8 +5691,8 @@ > > _dragDropInteractionState.prepareForDragSession(session, completion); > >- auto dragOrigin = roundedIntPoint([session locationInView:self]); >- _page->requestStartDataInteraction(dragOrigin, roundedIntPoint([self convertPoint:dragOrigin toView:self.window])); >+ auto dragOrigin = WebCore::roundedIntPoint([session locationInView:self]); >+ _page->requestStartDataInteraction(dragOrigin, WebCore::roundedIntPoint([self convertPoint:dragOrigin toView:self.window])); > > RELEASE_LOG(DragAndDrop, "Drag session requested: %p at origin: {%d, %d}", session, dragOrigin.x(), dragOrigin.y()); > } >@@ -5719,7 +5718,7 @@ > _page->dragCancelled(); > > RELEASE_LOG(DragAndDrop, "Drag session: %p starting with %tu items", session, [dragItems count]); >- _dragDropInteractionState.clearStagedDragSource([dragItems count] ? DragDropInteractionState::DidBecomeActive::Yes : DragDropInteractionState::DidBecomeActive::No); >+ _dragDropInteractionState.clearStagedDragSource([dragItems count] ? WebKit::DragDropInteractionState::DidBecomeActive::Yes : WebKit::DragDropInteractionState::DidBecomeActive::No); > > return dragItems; > } >@@ -5737,13 +5736,13 @@ > > - (void)dragInteraction:(UIDragInteraction *)interaction willAnimateLiftWithAnimator:(id <UIDragAnimating>)animator session:(id <UIDragSession>)session > { >- if (!_shouldRestoreCalloutBarAfterDrop && _dragDropInteractionState.anyActiveDragSourceIs(DragSourceActionSelection)) { >+ if (!_shouldRestoreCalloutBarAfterDrop && _dragDropInteractionState.anyActiveDragSourceIs(WebCore::DragSourceActionSelection)) { > // FIXME: This SPI should be renamed in UIKit to reflect a more general purpose of hiding interaction assistant controls. > [_textSelectionAssistant willStartScrollingOverflow]; > _shouldRestoreCalloutBarAfterDrop = YES; > } > >- auto positionForDragEnd = roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()); >+ auto positionForDragEnd = WebCore::roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()); > RetainPtr<WKContentView> protectedSelf(self); > [animator addCompletion:[session, positionForDragEnd, protectedSelf, page = _page] (UIViewAnimatingPosition finalPosition) { > #if RELEASE_LOG_DISABLED >@@ -5753,7 +5752,7 @@ > RELEASE_LOG(DragAndDrop, "Drag session ended at start: %p", session); > // The lift was canceled, so -dropInteraction:sessionDidEnd: will never be invoked. This is the last chance to clean up. > [protectedSelf cleanUpDragSourceSessionState]; >- page->dragEnded(positionForDragEnd, positionForDragEnd, DragOperationNone); >+ page->dragEnded(positionForDragEnd, positionForDragEnd, WebCore::DragOperationNone); > } > }]; > } >@@ -5784,7 +5783,7 @@ > return; > > [self cleanUpDragSourceSessionState]; >- _page->dragEnded(roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()), roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()), operation); >+ _page->dragEnded(WebCore::roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()), WebCore::roundedIntPoint(_dragDropInteractionState.adjustedPositionForDragEnd()), operation); > } > > - (UITargetedDragPreview *)dragInteraction:(UIDragInteraction *)interaction previewForCancellingItem:(UIDragItem *)item withDefault:(UITargetedDragPreview *)defaultPreview >@@ -5809,7 +5808,7 @@ > [animator addCompletion:[protectedSelf = retainPtr(self), page = _page] (UIViewAnimatingPosition finalPosition) { > page->dragCancelled(); > if (auto completion = protectedSelf->_dragDropInteractionState.takeDragCancelSetDownBlock()) { >- page->callAfterNextPresentationUpdate([completion] (CallbackBase::Error) { >+ page->callAfterNextPresentationUpdate([completion] (WebKit::CallbackBase::Error) { > completion(); > }); > } >@@ -5913,13 +5912,13 @@ > filenames.append([fileURL path]); > capturedDragData.setFileNames(filenames); > >- SandboxExtension::Handle sandboxExtensionHandle; >- SandboxExtension::HandleArray sandboxExtensionForUpload; >+ WebKit::SandboxExtension::Handle sandboxExtensionHandle; >+ WebKit::SandboxExtension::HandleArray sandboxExtensionForUpload; > retainedSelf->_page->createSandboxExtensionsIfNeeded(filenames, sandboxExtensionHandle, sandboxExtensionForUpload); > retainedSelf->_page->performDragOperation(capturedDragData, "data interaction pasteboard", WTFMove(sandboxExtensionHandle), WTFMove(sandboxExtensionForUpload)); > > retainedSelf->_visibleContentViewSnapshot = [retainedSelf snapshotViewAfterScreenUpdates:NO]; >- [retainedSelf _beginSuppressingSelectionAssistantForReason:DropAnimationIsRunning]; >+ [retainedSelf _beginSuppressingSelectionAssistantForReason:WebKit::DropAnimationIsRunning]; > [UIView performWithoutAnimation:[retainedSelf] { > [retainedSelf->_visibleContentViewSnapshot setFrame:[retainedSelf bounds]]; > [retainedSelf addSubview:retainedSelf->_visibleContentViewSnapshot.get()]; >@@ -5959,7 +5958,7 @@ > CGPoint client; > [self computeClientAndGlobalPointsForDropSession:session outClientPoint:&client outGlobalPoint:&global]; > [self cleanUpDragSourceSessionState]; >- _page->dragEnded(roundedIntPoint(client), roundedIntPoint(global), DragOperationNone); >+ _page->dragEnded(WebCore::roundedIntPoint(client), WebCore::roundedIntPoint(global), WebCore::DragOperationNone); > } > > #endif >@@ -6024,12 +6023,12 @@ > - (BOOL)allowsLanguageSelectionMenuForListViewController:(PUICQuickboardViewController *)controller > { > switch (_assistedNodeInformation.elementType) { >- case InputType::ContentEditable: >- case InputType::Text: >- case InputType::TextArea: >- case InputType::Search: >- case InputType::Email: >- case InputType::URL: >+ case WebKit::InputType::ContentEditable: >+ case WebKit::InputType::Text: >+ case WebKit::InputType::TextArea: >+ case WebKit::InputType::Search: >+ case WebKit::InputType::Email: >+ case WebKit::InputType::URL: > return YES; > default: > return NO; >@@ -6067,14 +6066,14 @@ > - (BOOL)shouldDisplayInputContextViewForListViewController:(PUICQuickboardViewController *)controller > { > switch (_assistedNodeInformation.elementType) { >- case InputType::ContentEditable: >- case InputType::Text: >- case InputType::Password: >- case InputType::TextArea: >- case InputType::Search: >- case InputType::Email: >- case InputType::URL: >- case InputType::Phone: >+ case WebKit::InputType::ContentEditable: >+ case WebKit::InputType::Text: >+ case WebKit::InputType::Password: >+ case WebKit::InputType::TextArea: >+ case WebKit::InputType::Search: >+ case WebKit::InputType::Email: >+ case WebKit::InputType::URL: >+ case WebKit::InputType::Phone: > return YES; > default: > return NO; >@@ -6086,11 +6085,11 @@ > - (WKNumberPadInputMode)numericInputModeForListViewController:(WKTextInputListViewController *)controller > { > switch (_assistedNodeInformation.elementType) { >- case InputType::Phone: >+ case WebKit::InputType::Phone: > return WKNumberPadInputModeTelephone; >- case InputType::Number: >+ case WebKit::InputType::Number: > return WKNumberPadInputModeNumbersAndSymbols; >- case InputType::NumberPad: >+ case WebKit::InputType::NumberPad: > return WKNumberPadInputModeNumbersOnly; > default: > return WKNumberPadInputModeNone; >@@ -6100,13 +6099,13 @@ > - (NSString *)textContentTypeForListViewController:(WKTextInputListViewController *)controller > { > switch (_assistedNodeInformation.elementType) { >- case InputType::Password: >+ case WebKit::InputType::Password: > return UITextContentTypePassword; >- case InputType::URL: >+ case WebKit::InputType::URL: > return UITextContentTypeURL; >- case InputType::Email: >+ case WebKit::InputType::Email: > return UITextContentTypeEmailAddress; >- case InputType::Phone: >+ case WebKit::InputType::Phone: > return UITextContentTypeTelephoneNumber; > default: > // The element type alone is insufficient to infer content type; fall back to autofill data. >@@ -6133,7 +6132,7 @@ > > - (BOOL)allowsDictationInputForListViewController:(PUICQuickboardViewController *)controller > { >- return _assistedNodeInformation.elementType != InputType::Password; >+ return _assistedNodeInformation.elementType != WebKit::InputType::Password; > } > > #endif // PLATFORM(WATCHOS) >@@ -6195,10 +6194,10 @@ > - (void)_simulateLongPressActionAtLocation:(CGPoint)location > { > RetainPtr<WKContentView> protectedSelf = self; >- [self doAfterPositionInformationUpdate:[protectedSelf] (InteractionInformationAtPosition) { >+ [self doAfterPositionInformationUpdate:[protectedSelf] (WebKit::InteractionInformationAtPosition) { > if (SEL action = [protectedSelf _actionForLongPress]) > [protectedSelf performSelector:action]; >- } forRequest:InteractionInformationRequest(roundedIntPoint(location))]; >+ } forRequest:WebKit::InteractionInformationRequest(WebCore::roundedIntPoint(location))]; > } > > - (void)selectFormAccessoryPickerRow:(NSInteger)rowIndex >@@ -6292,7 +6291,7 @@ > if (!_highlightLongPressCanClick) > return NO; > >- InteractionInformationRequest request(roundedIntPoint(position)); >+ WebKit::InteractionInformationRequest request(WebCore::roundedIntPoint(position)); > request.includeSnapshot = true; > request.includeLinkIndicator = true; > if (![self ensurePositionInformationIsUpToDate:request]) >@@ -6312,7 +6311,7 @@ > if (linkURL.protocolIsInHTTPFamily()) > return YES; > #if ENABLE(DATA_DETECTION) >- if (DataDetection::canBePresentedByDataDetectors(linkURL)) >+ if (WebCore::DataDetection::canBePresentedByDataDetectors(linkURL)) > return YES; > #endif > return NO; >@@ -6583,8 +6582,8 @@ > RetainPtr<NSMutableArray> rectArray = adoptNS([[NSMutableArray alloc] init]); > > if (_positionInformation.linkIndicator.contentImage) { >- FloatPoint origin = _positionInformation.linkIndicator.textBoundingRectInRootViewCoordinates.location(); >- for (FloatRect& rect : _positionInformation.linkIndicator.textRectsInBoundingRectCoordinates) { >+ WebCore::FloatPoint origin = _positionInformation.linkIndicator.textBoundingRectInRootViewCoordinates.location(); >+ for (WebCore::FloatRect& rect : _positionInformation.linkIndicator.textRectsInBoundingRectCoordinates) { > CGRect cgRect = rect; > cgRect.origin.x += origin.x(); > cgRect.origin.y += origin.y(); >Index: Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm >=================================================================== >--- Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm (revision 239019) >+++ Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm (working copy) >@@ -40,9 +40,6 @@ > #import <pal/spi/cocoa/AVKitSPI.h> > #import <wtf/RetainPtr.h> > >-using namespace WebCore; >-using namespace WebKit; >- > static const NSTimeInterval showHideAnimationDuration = 0.1; > static const NSTimeInterval pipHideAnimationDuration = 0.2; > static const NSTimeInterval autoHideDelay = 4.0; >@@ -56,7 +53,7 @@ > - (void)failedToEnterPictureInPicture; > @end > >-class WKFullScreenViewControllerPlaybackSessionModelClient : PlaybackSessionModelClient { >+class WKFullScreenViewControllerPlaybackSessionModelClient : WebCore::PlaybackSessionModelClient { > public: > void setParent(WKFullScreenViewController *parent) { m_parent = parent; } > >@@ -74,7 +71,7 @@ > m_parent.pictureInPictureActive = active; > } > >- void setInterface(PlaybackSessionInterfaceAVKit* interface) >+ void setInterface(WebCore::PlaybackSessionInterfaceAVKit* interface) > { > if (m_interface == interface) > return; >@@ -88,14 +85,14 @@ > > private: > WKFullScreenViewController *m_parent { nullptr }; >- RefPtr<PlaybackSessionInterfaceAVKit> m_interface; >+ RefPtr<WebCore::PlaybackSessionInterfaceAVKit> m_interface; > }; > >-class WKFullScreenViewControllerVideoFullscreenModelClient : VideoFullscreenModelClient { >+class WKFullScreenViewControllerVideoFullscreenModelClient : WebCore::VideoFullscreenModelClient { > public: > void setParent(WKFullScreenViewController *parent) { m_parent = parent; } > >- void setInterface(VideoFullscreenInterfaceAVKit* interface) >+ void setInterface(WebCore::VideoFullscreenInterfaceAVKit* interface) > { > if (m_interface == interface) > return; >@@ -107,7 +104,7 @@ > m_interface->videoFullscreenModel()->addClient(*this); > } > >- VideoFullscreenInterfaceAVKit* interface() const { return m_interface.get(); } >+ WebCore::VideoFullscreenInterfaceAVKit* interface() const { return m_interface.get(); } > > void willEnterPictureInPicture() final > { >@@ -126,7 +123,7 @@ > > private: > WKFullScreenViewController *m_parent { nullptr }; >- RefPtr<VideoFullscreenInterfaceAVKit> m_interface; >+ RefPtr<WebCore::VideoFullscreenInterfaceAVKit> m_interface; > }; > > #pragma mark - _WKExtrinsicButton >@@ -152,7 +149,7 @@ > > @interface WKFullScreenViewController () <UIGestureRecognizerDelegate, UIToolbarDelegate> > @property (weak, nonatomic) WKWebView *_webView; // Cannot be retained, see <rdar://problem/14884666>. >-@property (readonly, nonatomic) WebFullScreenManagerProxy* _manager; >+@property (readonly, nonatomic) WebKit::WebFullScreenManagerProxy* _manager; > @property (readonly, nonatomic) WebCore::FloatBoxExtent _effectiveFullscreenInsets; > @end > >@@ -260,7 +257,7 @@ > > - (void)videoControlsManagerDidChange > { >- WebPageProxy* page = [self._webView _page]; >+ WebKit::WebPageProxy* page = [self._webView _page]; > auto* videoFullscreenManager = page ? page->videoFullscreenManager() : nullptr; > auto* videoFullscreenInterface = videoFullscreenManager ? videoFullscreenManager->controlsManagerInterface() : nullptr; > auto* playbackSessionInterface = videoFullscreenInterface ? &videoFullscreenInterface->playbackSessionInterface() : nullptr; >@@ -268,7 +265,7 @@ > _playbackClient.setInterface(playbackSessionInterface); > _videoFullscreenClient.setInterface(videoFullscreenInterface); > >- PlaybackSessionModel* playbackSessionModel = playbackSessionInterface ? playbackSessionInterface->playbackSessionModel() : nullptr; >+ WebCore::PlaybackSessionModel* playbackSessionModel = playbackSessionInterface ? playbackSessionInterface->playbackSessionModel() : nullptr; > self.playing = playbackSessionModel ? playbackSessionModel->isPlaying() : NO; > [_pipButton setHidden:!playbackSessionModel]; > } >@@ -481,7 +478,7 @@ > #pragma mark - Internal Interface > > @dynamic _manager; >-- (WebFullScreenManagerProxy*)_manager >+- (WebKit::WebFullScreenManagerProxy*)_manager > { > if (auto* page = [self._webView _page]) > return page->fullScreenManager(); >@@ -507,11 +504,11 @@ > > - (void)_togglePiPAction:(id)sender > { >- WebPageProxy* page = [self._webView _page]; >+ WebKit::WebPageProxy* page = [self._webView _page]; > if (!page) > return; > >- PlaybackSessionManagerProxy* playbackSessionManager = page->playbackSessionManager(); >+ WebKit::PlaybackSessionManagerProxy* playbackSessionManager = page->playbackSessionManager(); > if (!playbackSessionManager) > return; > >@@ -519,7 +516,7 @@ > if (!playbackSessionInterface) > return; > >- PlaybackSessionModel* playbackSessionModel = playbackSessionInterface->playbackSessionModel(); >+ WebCore::PlaybackSessionModel* playbackSessionModel = playbackSessionInterface->playbackSessionModel(); > if (!playbackSessionModel) > return; > >Index: Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm >=================================================================== >--- Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm (revision 239019) >+++ Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm (working copy) >@@ -53,8 +53,6 @@ > #import <wtf/cocoa/NSURLExtras.h> > #import <wtf/spi/cocoa/SecuritySPI.h> > >-using namespace WebKit; >-using namespace WebCore; > > #if !HAVE(URL_FORMATTING) > SOFT_LINK_PRIVATE_FRAMEWORK_OPTIONAL(LinkPresentation) >@@ -61,6 +59,8 @@ > #endif > > namespace WebKit { >+using namespace WebKit; >+using namespace WebCore; > > static CGSize sizeExpandedToSize(CGSize initial, CGSize other) > { >@@ -212,7 +212,7 @@ > CGRect fullscreenFrame = _animatingIn ? _finalFrame : _initialFrame; > _animatingView = _animatingIn ? toView : fromView; > >- CGRect boundsRect = largestRectWithAspectRatioInsideRect(FloatRect(inlineFrame).size().aspectRatio(), fullscreenFrame); >+ CGRect boundsRect = WebCore::largestRectWithAspectRatioInsideRect(WebCore::FloatRect(inlineFrame).size().aspectRatio(), fullscreenFrame); > boundsRect.origin = CGPointZero; > > _initialMaskViewBounds = _animatingIn ? boundsRect : [_animatingView bounds]; >@@ -220,7 +220,7 @@ > _finalMaskViewBounds = _animatingIn ? [_animatingView bounds] : boundsRect; > _finalMaskViewCenter = CGPointMake(CGRectGetMidX([_animatingView bounds]), CGRectGetMidY([_animatingView bounds])); > >- FloatRect scaleRect = smallestRectWithAspectRatioAroundRect(FloatRect(fullscreenFrame).size().aspectRatio(), inlineFrame); >+ WebCore::FloatRect scaleRect = WebCore::smallestRectWithAspectRatioAroundRect(WebCore::FloatRect(fullscreenFrame).size().aspectRatio(), inlineFrame); > CGAffineTransform scaleTransform = CGAffineTransformMakeScale(scaleRect.width() / fullscreenFrame.size.width, scaleRect.height() / fullscreenFrame.size.height); > CGAffineTransform translateTransform = CGAffineTransformMakeTranslation(CGRectGetMidX(inlineFrame) - CGRectGetMidX(fullscreenFrame), CGRectGetMidY(inlineFrame) - CGRectGetMidY(fullscreenFrame)); > >@@ -425,8 +425,8 @@ > @implementation WKFullScreenWindowController { > RetainPtr<WKFullScreenPlaceholderView> _webViewPlaceholder; > >- FullScreenState _fullScreenState; >- WKWebViewState _viewState; >+ WebKit::FullScreenState _fullScreenState; >+ WebKit::WKWebViewState _viewState; > > RetainPtr<UIWindow> _window; > RetainPtr<UIViewController> _rootViewController; >@@ -474,9 +474,9 @@ > > - (BOOL)isFullScreen > { >- return _fullScreenState == WaitingToEnterFullScreen >- || _fullScreenState == EnteringFullScreen >- || _fullScreenState == InFullScreen; >+ return _fullScreenState == WebKit::WaitingToEnterFullScreen >+ || _fullScreenState == WebKit::EnteringFullScreen >+ || _fullScreenState == WebKit::InFullScreen; > } > > - (UIView *)webViewPlaceholder >@@ -500,7 +500,7 @@ > > [self _invalidateEVOrganizationName]; > >- _fullScreenState = WaitingToEnterFullScreen; >+ _fullScreenState = WebKit::WaitingToEnterFullScreen; > > _window = adoptNS([[UIWindow alloc] init]); > [_window setBackgroundColor:[UIColor clearColor]]; >@@ -563,9 +563,9 @@ > [CATransaction setDisableActions:YES]; > > [[_webViewPlaceholder layer] setContents:(id)[snapshotImage CGImage]]; >- replaceViewWithView(webView.get(), _webViewPlaceholder.get()); >+ WebKit::replaceViewWithView(webView.get(), _webViewPlaceholder.get()); > >- WKWebViewState().applyTo(webView.get()); >+ WebKit::WKWebViewState().applyTo(webView.get()); > > [webView setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)]; > [webView setFrame:[_window bounds]]; >@@ -577,7 +577,7 @@ > if (auto* manager = self._manager) > manager->setAnimatingFullScreen(true); > >- ViewportArguments arguments { ViewportArguments::CSSDeviceAdaptation }; >+ WebCore::ViewportArguments arguments { WebCore::ViewportArguments::CSSDeviceAdaptation }; > arguments.zoom = 1; > arguments.minZoom = 1; > arguments.maxZoom = 1; >@@ -584,7 +584,7 @@ > arguments.userZoom = 1; > page->setOverrideViewportArguments(arguments); > >- _repaintCallback = VoidCallback::create([protectedSelf = retainPtr(self), self](WebKit::CallbackBase::Error) { >+ _repaintCallback = WebKit::VoidCallback::create([protectedSelf = retainPtr(self), self](WebKit::CallbackBase::Error) { > _repaintCallback = nullptr; > if (auto* manager = [protectedSelf _manager]) { > manager->willEnterFullScreen(); >@@ -602,16 +602,16 @@ > > - (void)beganEnterFullScreenWithInitialFrame:(CGRect)initialFrame finalFrame:(CGRect)finalFrame > { >- if (_fullScreenState != WaitingToEnterFullScreen) >+ if (_fullScreenState != WebKit::WaitingToEnterFullScreen) > return; >- _fullScreenState = EnteringFullScreen; >+ _fullScreenState = WebKit::EnteringFullScreen; > > _initialFrame = initialFrame; > _finalFrame = finalFrame; > >- _initialFrame.size = sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1)); >- _finalFrame.size = sizeExpandedToSize(_finalFrame.size, CGSizeMake(1, 1)); >- _initialFrame = safeInlineRect(_initialFrame, [_rootViewController view].frame.size); >+ _initialFrame.size = WebKit::sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1)); >+ _finalFrame.size = WebKit::sizeExpandedToSize(_finalFrame.size, CGSizeMake(1, 1)); >+ _initialFrame = WebKit::safeInlineRect(_initialFrame, [_rootViewController view].frame.size); > > [CATransaction begin]; > [CATransaction setDisableActions:YES]; >@@ -627,7 +627,7 @@ > [CATransaction commit]; > > [_rootViewController presentViewController:_fullscreenViewController.get() animated:YES completion:^{ >- _fullScreenState = InFullScreen; >+ _fullScreenState = WebKit::InFullScreen; > > auto* page = [self._webView _page]; > auto* manager = self._manager; >@@ -659,7 +659,7 @@ > { > if (!self.isFullScreen) > return; >- _fullScreenState = WaitingToExitFullScreen; >+ _fullScreenState = WebKit::WaitingToExitFullScreen; > > if (auto* manager = self._manager) { > manager->setAnimatingFullScreen(true); >@@ -673,16 +673,16 @@ > > - (void)beganExitFullScreenWithInitialFrame:(CGRect)initialFrame finalFrame:(CGRect)finalFrame > { >- if (_fullScreenState != WaitingToExitFullScreen) >+ if (_fullScreenState != WebKit::WaitingToExitFullScreen) > return; >- _fullScreenState = ExitingFullScreen; >+ _fullScreenState = WebKit::ExitingFullScreen; > > _initialFrame = initialFrame; > _finalFrame = finalFrame; > >- _initialFrame.size = sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1)); >- _finalFrame.size = sizeExpandedToSize(_finalFrame.size, CGSizeMake(1, 1)); >- _finalFrame = safeInlineRect(_finalFrame, [_rootViewController view].frame.size); >+ _initialFrame.size = WebKit::sizeExpandedToSize(_initialFrame.size, CGSizeMake(1, 1)); >+ _finalFrame.size = WebKit::sizeExpandedToSize(_finalFrame.size, CGSizeMake(1, 1)); >+ _finalFrame = WebKit::safeInlineRect(_finalFrame, [_rootViewController view].frame.size); > > if (auto* page = [self._webView _page]) > page->setSuppressVisibilityUpdates(true); >@@ -700,9 +700,9 @@ > > - (void)_completedExitFullScreen > { >- if (_fullScreenState != ExitingFullScreen) >+ if (_fullScreenState != WebKit::ExitingFullScreen) > return; >- _fullScreenState = NotInFullScreen; >+ _fullScreenState = WebKit::NotInFullScreen; > > [CATransaction begin]; > [CATransaction setDisableActions:YES]; >@@ -737,7 +737,7 @@ > ASSERT(!_repaintCallback); > } > >- _repaintCallback = VoidCallback::create([protectedSelf = retainPtr(self), self](WebKit::CallbackBase::Error) { >+ _repaintCallback = WebKit::VoidCallback::create([protectedSelf = retainPtr(self), self](WebKit::CallbackBase::Error) { > _repaintCallback = nullptr; > _webViewPlaceholder.get().parent = nil; > [_webViewPlaceholder removeFromSuperview]; >@@ -763,7 +763,7 @@ > > - (void)webViewDidRemoveFromSuperviewWhileInFullscreen > { >- if (_fullScreenState == InFullScreen && self._webView.window != _window.get()) >+ if (_fullScreenState == WebKit::InFullScreen && self._webView.window != _window.get()) > [self _exitFullscreenImmediately]; > } > >@@ -855,11 +855,11 @@ > if (manager) > manager->requestExitFullScreen(); > [self exitFullScreen]; >- _fullScreenState = ExitingFullScreen; >+ _fullScreenState = WebKit::ExitingFullScreen; > [self _completedExitFullScreen]; > RetainPtr<WKWebView> webView = self._webView; > _webViewPlaceholder.get().parent = nil; >- replaceViewWithView(_webViewPlaceholder.get(), webView.get()); >+ WebKit::replaceViewWithView(_webViewPlaceholder.get(), webView.get()); > if (auto* page = [webView _page]) > page->setSuppressVisibilityUpdates(false); > if (manager) { >@@ -961,7 +961,7 @@ > [_fullscreenViewController setLocation:text]; > } > >-- (WebFullScreenManagerProxy*)_manager >+- (WebKit::WebFullScreenManagerProxy*)_manager > { > if (auto* page = [self._webView _page]) > return page->fullScreenManager(); >@@ -1049,4 +1049,5 @@ > > @end > >+ > #endif // PLATFORM(IOS_FAMILY) && ENABLE(FULLSCREEN_API) >Index: Source/WebKit/UIProcess/mac/WebPageProxyMac.mm >=================================================================== >--- Source/WebKit/UIProcess/mac/WebPageProxyMac.mm (revision 239019) >+++ Source/WebKit/UIProcess/mac/WebPageProxyMac.mm (working copy) >@@ -67,8 +67,6 @@ > #define MESSAGE_CHECK(assertion) MESSAGE_CHECK_BASE(assertion, process().connection()) > #define MESSAGE_CHECK_URL(url) MESSAGE_CHECK_BASE(m_process->checkURLReceivedFromWebProcess(url), m_process->connection()) > >-using namespace WebCore; >- > @interface NSApplication () > - (BOOL)isSpeaking; > - (void)speakString:(NSString *)string; >@@ -107,7 +105,8 @@ > #endif > > namespace WebKit { >- >+using namespace WebCore; >+ > static inline bool expectsLegacyImplicitRubberBandControl() > { > if (MacApplication::isSafari()) { >Index: Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.cpp >=================================================================== >--- Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.cpp (revision 239019) >+++ Source/WebKit/WebProcess/Cache/WebCacheStorageConnection.cpp (working copy) >@@ -35,11 +35,10 @@ > #include "WebProcess.h" > #include <wtf/MainThread.h> > >+namespace WebKit { > using namespace WebCore::DOMCacheEngine; >-using namespace WebKit::CacheStorage; >+using namespace CacheStorage; > >-namespace WebKit { >- > WebCacheStorageConnection::WebCacheStorageConnection(WebCacheStorageProvider& provider, PAL::SessionID sessionID) > : m_provider(provider) > , m_sessionID(sessionID) >Index: Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm >=================================================================== >--- Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm (revision 239019) >+++ Source/WebKit/WebProcess/WebPage/RemoteLayerTree/PlatformCAAnimationRemote.mm (working copy) >@@ -40,12 +40,9 @@ > #import <wtf/RetainPtr.h> > #import <wtf/text/TextStream.h> > >-using namespace WTF; >-using namespace WebCore; >- > static MonotonicTime mediaTimeToCurrentTime(CFTimeInterval t) > { >- return MonotonicTime::now() + Seconds(t - CACurrentMediaTime()); >+ return WTF::MonotonicTime::now() + Seconds(t - CACurrentMediaTime()); > } > > static NSString * const WKExplicitBeginTimeFlag = @"WKPlatformCAAnimationExplicitBeginTimeFlag"; >@@ -55,7 +52,7 @@ > > @implementation WKAnimationDelegate > >-- (instancetype)initWithLayerID:(GraphicsLayer::PlatformLayerID)layerID layerTreeHost:(WebKit::RemoteLayerTreeHost*)layerTreeHost >+- (instancetype)initWithLayerID:(WebCore::GraphicsLayer::PlatformLayerID)layerID layerTreeHost:(WebKit::RemoteLayerTreeHost*)layerTreeHost > { > if ((self = [super init])) { > _layerID = layerID; >@@ -98,6 +95,7 @@ > @end > > namespace WebKit { >+using namespace WebCore; > > void PlatformCAAnimationRemote::KeyframeValue::encode(IPC::Encoder& encoder) const > { >Index: Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm >=================================================================== >--- Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm (revision 239019) >+++ Source/WebKit/WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm (working copy) >@@ -48,8 +48,6 @@ > #import <pal/spi/mac/NSAccessibilitySPI.h> > #import <wtf/ObjCRuntimeExtras.h> > >-using namespace WebCore; >-using namespace WebKit; > > @implementation WKAccessibilityWebPageObject > >@@ -218,7 +216,7 @@ > > // Some plugins may be able to figure out the scroll position and inset on their own. > bool applyContentOffset = true; >- if (auto pluginView = WebPage::pluginViewForFrame(m_page->mainFrame())) >+ if (auto pluginView = WebKit::WebPage::pluginViewForFrame(m_page->mainFrame())) > applyContentOffset = !pluginView->plugin()->pluginHandlesContentOffsetForAccessibilityHitTest(); > > if (applyContentOffset) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 192449
:
356865
|
356866
|
356867
|
356868
|
356869
|
356870
|
356871
|
356872
|
356908
|
356926
|
356929
|
356950
|
356951
|
356989
|
356993
|
356995
|
357000
|
357014
|
357021
|
357109
|
357112
|
357115
|
357136
|
357139
|
357145
|
357152
|
357189
|
357191
|
357195
|
357211
|
357214
|
357218
|
357232
|
357237
|
357278
|
357318
|
357329