3fbf538e62
https://bugs.webkit.org/show_bug.cgi?id=221932 Reviewed by Geoff Garen. Reduce explicit usage of [objC autorelease] in WebKit by using RetainPtr<>. Source/JavaScriptCore: * API/JSContext.mm: (-[JSContext init]): (+[JSContext contextWithJSGlobalContextRef:]): * API/JSManagedValue.mm: (+[JSManagedValue managedValueWithValue:]): (+[JSManagedValue managedValueWithValue:andOwner:]): * API/JSScript.mm: (+[JSScript scriptOfType:withSource:andSourceURL:andBytecodeCache:inVirtualMachine:error:]): (+[JSScript scriptOfType:memoryMappedFromASCIIFile:withSourceURL:andBytecodeCache:inVirtualMachine:error:]): * API/JSVirtualMachine.mm: (+[JSVirtualMachine virtualMachineWithContextGroupRef:]): * API/JSWrapperMap.mm: (-[JSWrapperMap classInfoForClass:]): (-[JSWrapperMap objcWrapperForJSValueRef:inContext:]): * inspector/remote/cocoa/RemoteConnectionToTargetCocoa.mm: (Inspector::RemoteConnectionToTarget::connectionIdentifier const): (Inspector::RemoteConnectionToTarget::destination const): * inspector/scripts/codegen/objc_generator.py: (ObjCGenerator.objc_protocol_import_expression_for_variable): Source/WebCore: * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (+[WebAccessibilityTextMarker textMarkerWithVisiblePosition:cache:]): (+[WebAccessibilityTextMarker textMarkerWithCharacterOffset:cache:]): (+[WebAccessibilityTextMarker startOrEndTextMarkerForRange:isStart:cache:]): (-[WebAccessibilityObjectWrapper _prepareAccessibilityCall]): (-[WebAccessibilityObjectWrapper arrayOfTextForTextMarkers:attributed:]): (-[WebAccessibilityObjectWrapper _stringFromStartMarker:toEndMarker:attributed:]): (-[WebAccessibilityObjectWrapper nextMarkerForCharacterOffset:]): (-[WebAccessibilityObjectWrapper previousMarkerForCharacterOffset:]): * accessibility/mac/AXObjectCacheMac.mm: (WebCore::textReplacementChangeDictionary): * accessibility/mac/WebAccessibilityObjectWrapperBase.mm: (arrayRemovingNonSupportedTypes): (dictionaryRemovingNonSupportedTypes): * bridge/objc/WebScriptObject.mm: (WebCore::getJSWrapper): (WebCore::createJSWrapper): (+[WebUndefined undefined]): * bridge/testbindings.mm: (-[MyFirstInterface setJSObject:]): (-[MyFirstInterface callJSObject::]): * editing/cocoa/HTMLConverter.mm: (_shadowForShadowStyle): (HTMLConverter::_addAttachmentForElement): (_dateForString): (fileWrapperForURL): * editing/cocoa/WebArchiveResourceWebResourceHandler.mm: (-[WebArchiveResourceWebResourceHandler resourceForData:URL:MIMEType:textEncodingName:frameName:]): * editing/cocoa/WebContentReaderCocoa.mm: (WebCore::attributesForAttributedStringConversion): * loader/mac/LoaderNSURLExtras.mm: (filenameByFixingIllegalCharacters): * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): * platform/ios/WebAVPlayerController.mm: (-[WebAVPlayerController init]): * platform/ios/WebEvent.mm: (-[WebEvent characters]): (-[WebEvent charactersIgnoringModifiers]): (-[WebEvent inputManagerHint]): * platform/ios/WebItemProviderPasteboard.mm: (+[WebItemProviderLoadResult loadResultWithItemProvider:typesToLoad:]): * platform/ios/WebVideoFullscreenControllerAVKit.mm: (-[WebVideoFullscreenController didFinishFullscreen:]): * platform/ios/wak/WAKView.mm: (+[WAKView _wrapperForViewRef:]): (-[WAKView dealloc]): * platform/mac/PasteboardMac.mm: (WebCore::fileWrapper): * platform/mac/WebCoreNSURLExtras.mm: (WebCore::URLByCanonicalizingURL): * platform/mac/WebNSAttributedStringExtras.mm: (WebCore::attributedStringByStrippingAttachmentCharacters): * platform/network/cf/ResourceRequest.h: * platform/network/cocoa/NetworkStorageSessionCocoa.mm: (WebCore::NetworkStorageSession::nsCookieStorage const): * platform/network/cocoa/ResourceRequestCocoa.mm: (WebCore::ResourceRequest::nsURLRequest const): (WebCore::ResourceRequest::setStorageSession): (WebCore::copyRequestWithStorageSession): (WebCore::cachedResponseForRequest): * platform/network/cocoa/WebCoreNSURLSession.mm: (-[WebCoreNSURLSession dataTaskWithRequest:]): (-[WebCoreNSURLSession dataTaskWithURL:]): (-[WebCoreNSURLSessionDataTask initWithSession:identifier:request:]): * platform/network/mac/AuthenticationMac.mm: (WebCore::mac): * platform/network/mac/ResourceErrorMac.mm: (dictionaryThatCanCode): * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::createNSURLConnection): * platform/network/mac/WebCoreURLResponse.mm: (WebCore::synthesizeRedirectResponseIfNecessary): * platform/text/ios/LocalizedDateCache.h: * platform/text/ios/LocalizedDateCache.mm: (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): Source/WebKit: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (downgradeRequest): (updateIgnoreStrictTransportSecuritySettingIfNecessary): (WebKit::proxyDictionary): (WebKit::NetworkSessionCocoa::NetworkSessionCocoa): (WebKit::NetworkSessionCocoa::createWebSocketTask): * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: (-[WKPaymentAuthorizationDelegate completePaymentMethodSelection:]): (-[WKPaymentAuthorizationDelegate completeShippingContactSelection:]): (-[WKPaymentAuthorizationDelegate completeShippingMethodSelection:]): * Shared/API/Cocoa/WKRemoteObjectCoder.mm: (encodeObject): * Shared/API/Cocoa/_WKRemoteObjectInterface.mm: (+[_WKRemoteObjectInterface remoteObjectInterfaceWithProtocol:]): * Shared/Cocoa/WKObject.h: (WebKit::wrapper): * UIProcess/API/Cocoa/NSAttributedString.mm: (+[_WKAttributedStringWebViewCache configuration]): (+[NSAttributedString _loadFromHTMLWithOptions:contentLoader:completionHandler:]): * UIProcess/API/Cocoa/WKBrowsingContextController.mm: (makePolicyDecisionBlock): (setUpPagePolicyClient): (-[WKBrowsingContextController handle]): * UIProcess/API/Cocoa/WKContentWorld.mm: (-[WKContentWorld _userContentWorld]): * UIProcess/API/Cocoa/WKFrameInfo.mm: (-[WKFrameInfo securityOrigin]): (-[WKFrameInfo webView]): (-[WKFrameInfo _handle]): (-[WKFrameInfo _parentFrameHandle]): * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _userContentWorld]): * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView configuration]): (-[WKWebView findString:withConfiguration:completionHandler:]): (-[WKWebView _frames:]): (-[WKWebView _handle]): (-[WKWebView _takePDFSnapshotWithConfiguration:completionHandler:]): (-[WKWebView _sessionState]): (-[WKWebView _sessionStateWithFilter:]): (-[WKWebView _getContentsAsAttributedStringWithCompletionHandler:]): * UIProcess/API/Cocoa/WKWebpagePreferences.mm: (+[WKWebpagePreferences defaultPreferences]): * UIProcess/API/Cocoa/WKWebsiteDataRecord.mm: (-[WKWebsiteDataRecord _dataSize]): * UIProcess/API/Cocoa/_WKActivatedElementInfo.mm: (+[_WKActivatedElementInfo activatedElementInfoWithInteractionInformationAtPosition:userInfo:]): (-[_WKActivatedElementInfo image]): * UIProcess/API/Cocoa/_WKAttachment.mm: (-[_WKAttachment info]): * UIProcess/API/Cocoa/_WKAutomationSession.mm: (-[_WKAutomationSession init]): (-[_WKAutomationSession configuration]): * UIProcess/API/Cocoa/_WKDownload.mm: (+[_WKDownload downloadWithDownload:]): (-[_WKDownload originatingWebView]): * UIProcess/API/Cocoa/_WKElementAction.mm: (+[_WKElementAction elementActionWithTitle:actionHandler:]): (+[_WKElementAction _elementActionWithType:title:actionHandler:]): (+[_WKElementAction _elementActionWithType:customTitle:assistant:]): * UIProcess/API/Cocoa/_WKFrameTreeNode.mm: (-[_WKFrameTreeNode securityOrigin]): (-[_WKFrameTreeNode webView]): (-[_WKFrameTreeNode _handle]): (-[_WKFrameTreeNode _parentFrameHandle]): * UIProcess/API/Cocoa/_WKInspector.mm: (-[_WKInspector registerExtensionWithID:displayName:completionHandler:]): * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: (-[_WKProcessPoolConfiguration customClassesForParameterCoder]): * UIProcess/API/Cocoa/_WKRemoteWebInspectorViewController.mm: (-[_WKRemoteWebInspectorViewController registerExtensionWithID:displayName:completionHandler:]): * UIProcess/API/Cocoa/_WKTextManipulationToken.mm: (-[_WKTextManipulationToken _descriptionPreservingPrivacy:]): * UIProcess/API/Cocoa/_WKUserContentExtensionStore.mm: (+[_WKUserContentExtensionStore defaultStore]): (+[_WKUserContentExtensionStore storeWithURL:]): (-[_WKUserContentExtensionStore compileContentExtensionForIdentifier:encodedContentExtension:completionHandler:]): (-[_WKUserContentExtensionStore lookupContentExtensionForIdentifier:completionHandler:]): * UIProcess/API/Cocoa/_WKUserContentWorld.mm: (+[_WKUserContentWorld worldWithName:]): (+[_WKUserContentWorld normalWorld]): * UIProcess/API/ios/WKWebViewIOS.mm: (-[WKWebView _uiEventAttribution]): (-[WKWebView _retainActiveFocusedState]): * UIProcess/Automation/ios/WebAutomationSessionIOS.mm: (WebKit::WebAutomationSession::platformSimulateKeyboardInteraction): * UIProcess/Cocoa/AutomationClient.mm: (WebKit::AutomationClient::requestAutomationSession): * UIProcess/Cocoa/SafeBrowsingWarningCocoa.mm: (WebKit::addLinkAndReplace): (WebKit::safeBrowsingDetailsText): * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: * UIProcess/Cocoa/VideoFullscreenManagerProxy.mm: (-[WKLayerHostView makeBackingLayer]): * UIProcess/Cocoa/WKContactPicker.mm: (-[WKContactPicker _contactsFromJSContacts:]): * UIProcess/Cocoa/WKSafeBrowsingWarning.mm: (makeButton): (makeLabel): (-[WKSafeBrowsingWarning addContent]): (-[WKSafeBrowsingWarning showDetailsClicked]): (-[WKSafeBrowsingTextView initWithAttributedString:forWarning:]): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::fullScreenWindow): Canonical link: https://commits.webkit.org/234169@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@272936 268f45cc-cd09-0410-ab3c-d52691b4dbfc |
||
---|---|---|
.. | ||
DocumentLoaderMac.cpp | ||
LoaderNSURLExtras.h | ||
LoaderNSURLExtras.mm | ||
ResourceLoaderMac.mm |