[webkit-changes] [WebKit/WebKit] fb4a3b: Deploy RefCountedAndCanMakeWeakPtr in more places

geoffreygaren noreply at github.com
Mon Dec 2 15:55:09 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: fb4a3b26498786e683bcf32283649cafcf51b6e0
      https://github.com/WebKit/WebKit/commit/fb4a3b26498786e683bcf32283649cafcf51b6e0
  Author: Geoffrey Garen <ggaren at apple.com>
  Date:   2024-12-02 (Mon, 02 Dec 2024)

  Changed paths:
    M Source/WebCore/Modules/WebGPU/GPUBindGroupLayout.h
    M Source/WebCore/Modules/WebGPU/GPUBuffer.h
    M Source/WebCore/Modules/WebGPU/GPUExternalTexture.h
    M Source/WebCore/Modules/WebGPU/GPUQuerySet.h
    M Source/WebCore/Modules/WebGPU/GPUShaderModule.h
    M Source/WebCore/Modules/WebGPU/GPUTexture.h
    M Source/WebCore/Modules/WebGPU/GPUTextureView.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUAdapter.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUBindGroup.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUBindGroupLayout.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUBuffer.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUCommandBuffer.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUCommandEncoder.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUCompositorIntegration.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUComputePassEncoder.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUComputePipeline.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUDevice.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUPipelineLayout.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUPresentationContext.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUQuerySet.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUQueue.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPURenderBundle.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPURenderBundleEncoder.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPURenderPassEncoder.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPURenderPipeline.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUSampler.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUShaderModule.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUTexture.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUTextureView.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUXRBinding.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUXRProjectionLayer.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUXRSubImage.h
    M Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUXRView.h
    M Source/WebCore/Modules/async-clipboard/ClipboardItem.h
    M Source/WebCore/Modules/contact-picker/ContactsManager.h
    M Source/WebCore/Modules/encryptedmedia/CDM.h
    M Source/WebCore/Modules/encryptedmedia/MediaKeySystemAccess.h
    M Source/WebCore/Modules/fetch/FetchBodyOwner.h
    M Source/WebCore/Modules/fetch/FormDataConsumer.h
    M Source/WebCore/Modules/filesystemaccess/FileSystemSyncAccessHandle.h
    M Source/WebCore/Modules/gamepad/Gamepad.h
    M Source/WebCore/Modules/geolocation/Geolocation.h
    M Source/WebCore/Modules/highlight/Highlight.h
    M Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.h
    M Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseConnection.h
    M Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseTransaction.h
    M Source/WebCore/Modules/mediacapabilities/MediaCapabilities.h
    M Source/WebCore/Modules/mediasession/MediaSession.h
    M Source/WebCore/Modules/mediastream/RTCController.h
    M Source/WebCore/Modules/reporting/ReportingScope.h
    M Source/WebCore/Modules/streams/WritableStream.h
    M Source/WebCore/Modules/web-locks/WebLockManager.h
    M Source/WebCore/Modules/web-locks/WebLockRegistry.cpp
    M Source/WebCore/Modules/webxr/WebXRHand.h
    M Source/WebCore/Modules/webxr/WebXRInputSource.h
    M Source/WebCore/Modules/webxr/WebXRRigidTransform.h
    M Source/WebCore/accessibility/atspi/AccessibilityRootAtspi.h
    M Source/WebCore/animation/AnimationEffect.h
    M Source/WebCore/animation/AnimationTimeline.h
    M Source/WebCore/crypto/SubtleCrypto.h
    M Source/WebCore/css/CSSCounterStyle.h
    M Source/WebCore/css/CSSPaintCallback.h
    M Source/WebCore/css/DeprecatedCSSOMValue.h
    M Source/WebCore/css/StyleSheetContents.cpp
    M Source/WebCore/css/StyleSheetContents.h
    M Source/WebCore/dom/DataTransfer.h
    M Source/WebCore/dom/EventListener.h
    M Source/WebCore/dom/EventLoop.cpp
    M Source/WebCore/dom/EventLoop.h
    M Source/WebCore/dom/NodeIterator.h
    M Source/WebCore/dom/UserGestureIndicator.h
    M Source/WebCore/dom/messageports/MessagePortChannel.h
    M Source/WebCore/history/HistoryItem.cpp
    M Source/WebCore/history/HistoryItem.h
    M Source/WebCore/html/DOMURL.h
    M Source/WebCore/loader/CookieJar.h
    M Source/WebCore/loader/FormSubmission.h
    M Source/WebCore/loader/ResourceLoader.h
    M Source/WebCore/loader/cache/CachedResourceLoader.h
    M Source/WebCore/page/CaptionUserPreferences.h
    M Source/WebCore/page/DOMTimer.h
    M Source/WebCore/page/IntersectionObserver.h
    M Source/WebCore/page/NavigatorBase.h
    M Source/WebCore/page/OpportunisticTaskScheduler.h
    M Source/WebCore/page/Page.h
    M Source/WebCore/page/PageOverlay.h
    M Source/WebCore/page/ResizeObserver.h
    M Source/WebCore/page/UndoItem.h
    M Source/WebCore/page/UndoManager.h
    M Source/WebCore/platform/animation/AcceleratedEffect.h
    M Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.h
    M Source/WebCore/platform/graphics/FontSelector.h
    M Source/WebCore/platform/graphics/Image.h
    M Source/WebCore/platform/graphics/ImageObserver.h
    M Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h
    M Source/WebCore/platform/mac/DataDetectorHighlight.h
    M Source/WebCore/plugins/DOMPlugin.h
    M Source/WebCore/plugins/PluginInfoProvider.h
    M Source/WebCore/rendering/style/StyleImage.h
    M Source/WebCore/svg/properties/SVGAttributeAnimator.h
    M Source/WebCore/testing/MockCDMFactory.h
    M Source/WebCore/testing/ServiceWorkerInternals.h
    M Source/WebCore/workers/service/background-fetch/BackgroundFetchManager.h
    M Source/WebCore/workers/service/background-fetch/BackgroundFetchStore.h
    M Source/WebCore/workers/service/server/SWServer.h
    M Source/WebCore/workers/service/server/SWServerRegistration.h
    M Source/WebCore/workers/service/server/SWServerWorker.h
    M Source/WebCore/worklets/Worklet.h
    M Source/WebDriver/WebSocketServer.h
    M Source/WebGPU/WebGPU/BindGroup.h
    M Source/WebGPU/WebGPU/BindGroupLayout.h
    M Source/WebGPU/WebGPU/Buffer.h
    M Source/WebGPU/WebGPU/CommandBuffer.h
    M Source/WebGPU/WebGPU/CommandEncoder.h
    M Source/WebGPU/WebGPU/ComputePipeline.h
    M Source/WebGPU/WebGPU/ExternalTexture.h
    M Source/WebGPU/WebGPU/PipelineLayout.h
    M Source/WebGPU/WebGPU/RenderPassEncoder.h
    M Source/WebGPU/WebGPU/RenderPipeline.h
    M Source/WebGPU/WebGPU/Texture.h
    M Source/WebGPU/WebGPU/TextureView.h
    M Source/WebGPU/WebGPU/XRBinding.h
    M Source/WebGPU/WebGPU/XRProjectionLayer.h
    M Source/WebGPU/WebGPU/XRSubImage.h
    M Source/WebGPU/WebGPU/XRView.h
    M Source/WebKit/GPUProcess/ShapeDetection/ShapeDetectionObjectHeap.h
    M Source/WebKit/GPUProcess/graphics/WebGPU/WebGPUObjectHeap.h
    M Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.h
    M Source/WebKit/NetworkProcess/cache/NetworkCache.h
    M Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.h
    M Source/WebKit/NetworkProcess/webtransport/NetworkTransportReceiveStream.h
    M Source/WebKit/Platform/cocoa/WebPrivacyHelpers.h
    M Source/WebKit/UIProcess/Authentication/cocoa/SecKeyProxyStore.h
    M Source/WebKit/UIProcess/BrowsingContextGroup.h
    M Source/WebKit/UIProcess/Cocoa/ExtensionCapabilityGranter.h
    M Source/WebKit/UIProcess/Extensions/WebExtensionMenuItem.h
    M Source/WebKit/UIProcess/Extensions/WebExtensionTab.h
    M Source/WebKit/UIProcess/Extensions/WebExtensionWindow.h
    M Source/WebKit/UIProcess/FrameProcess.h
    M Source/WebKit/UIProcess/ViewSnapshotStore.h
    M Source/WebKit/UIProcess/WebAuthentication/Cocoa/CcidConnection.h
    M Source/WebKit/UIProcess/WebAuthentication/Cocoa/NfcConnection.h
    M Source/WebKit/UIProcess/WebDataListSuggestionsDropdown.h
    M Source/WebKit/UIProcess/WebDateTimePicker.h
    M Source/WebKit/WebProcess/WebPage/IPCTestingAPI.cpp
    M Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.h
    M Source/WebKit/WebProcess/WebPage/WebURLSchemeHandlerProxy.h
    M Source/WebKit/WebProcess/WebPage/WebURLSchemeTaskProxy.h

  Log Message:
  -----------
  Deploy RefCountedAndCanMakeWeakPtr in more places
https://bugs.webkit.org/show_bug.cgi?id=283923
rdar://140801736

Reviewed by Mike Wyrzykowski and Timothy Hatcher.

This is a minor cleanup, and it also enables experimenting with implementations
that merge refcounting and weak counting.

* Source/WebCore/Modules/WebGPU/GPUBindGroupLayout.h:
* Source/WebCore/Modules/WebGPU/GPUBuffer.h:
* Source/WebCore/Modules/WebGPU/GPUExternalTexture.h:
* Source/WebCore/Modules/WebGPU/GPUQuerySet.h:
* Source/WebCore/Modules/WebGPU/GPUShaderModule.h:
* Source/WebCore/Modules/WebGPU/GPUTexture.h:
* Source/WebCore/Modules/WebGPU/GPUTextureView.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUAdapter.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUBindGroup.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUBindGroupLayout.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUBuffer.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUCommandBuffer.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUCommandEncoder.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUCompositorIntegration.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUComputePassEncoder.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUComputePipeline.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUDevice.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUPipelineLayout.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUPresentationContext.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUQuerySet.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUQueue.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPURenderBundle.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPURenderBundleEncoder.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPURenderPassEncoder.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPURenderPipeline.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUSampler.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUShaderModule.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUTexture.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUTextureView.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUXRBinding.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUXRProjectionLayer.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUXRSubImage.h:
* Source/WebCore/Modules/WebGPU/InternalAPI/WebGPUXRView.h:
* Source/WebCore/Modules/async-clipboard/ClipboardItem.h:
* Source/WebCore/Modules/contact-picker/ContactsManager.h:
* Source/WebCore/Modules/encryptedmedia/CDM.h:
* Source/WebCore/Modules/encryptedmedia/MediaKeySystemAccess.h:
* Source/WebCore/Modules/fetch/FetchBodyOwner.h:
* Source/WebCore/Modules/fetch/FormDataConsumer.h:
* Source/WebCore/Modules/filesystemaccess/FileSystemSyncAccessHandle.h:
* Source/WebCore/Modules/gamepad/Gamepad.h:
* Source/WebCore/Modules/geolocation/Geolocation.h:
* Source/WebCore/Modules/highlight/Highlight.h:
* Source/WebCore/Modules/indexeddb/server/MemoryObjectStore.h:
* Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseConnection.h:
* Source/WebCore/Modules/indexeddb/server/UniqueIDBDatabaseTransaction.h:
* Source/WebCore/Modules/mediacapabilities/MediaCapabilities.h:
* Source/WebCore/Modules/mediasession/MediaSession.h:
* Source/WebCore/Modules/mediastream/RTCController.h:
* Source/WebCore/Modules/reporting/ReportingScope.h:
* Source/WebCore/Modules/streams/WritableStream.h:
* Source/WebCore/Modules/web-locks/WebLockManager.h:
* Source/WebCore/Modules/web-locks/WebLockRegistry.cpp:
* Source/WebCore/Modules/webxr/WebXRHand.h:
* Source/WebCore/Modules/webxr/WebXRInputSource.h:
* Source/WebCore/Modules/webxr/WebXRRigidTransform.h:
* Source/WebCore/accessibility/atspi/AccessibilityRootAtspi.h:
* Source/WebCore/animation/AnimationEffect.h:
* Source/WebCore/animation/AnimationTimeline.h:
* Source/WebCore/crypto/SubtleCrypto.h:
* Source/WebCore/css/CSSCounterStyle.h:
* Source/WebCore/css/CSSPaintCallback.h:
* Source/WebCore/css/DeprecatedCSSOMValue.h:
* Source/WebCore/css/StyleSheetContents.cpp:
(WebCore::StyleSheetContents::StyleSheetContents):
* Source/WebCore/css/StyleSheetContents.h:
* Source/WebCore/dom/DataTransfer.h:
* Source/WebCore/dom/EventListener.h:
* Source/WebCore/dom/EventLoop.cpp:
* Source/WebCore/dom/EventLoop.h:
* Source/WebCore/dom/NodeIterator.h:
* Source/WebCore/dom/UserGestureIndicator.h:
* Source/WebCore/dom/messageports/MessagePortChannel.h:
* Source/WebCore/history/HistoryItem.cpp:
(WebCore::HistoryItem::HistoryItem):
* Source/WebCore/history/HistoryItem.h:
* Source/WebCore/html/DOMURL.h:
* Source/WebCore/loader/CookieJar.h:
* Source/WebCore/loader/FormSubmission.h:
* Source/WebCore/loader/ResourceLoader.h:
* Source/WebCore/loader/cache/CachedResourceLoader.h:
* Source/WebCore/page/CaptionUserPreferences.h:
* Source/WebCore/page/DOMTimer.h:
* Source/WebCore/page/IntersectionObserver.h:
* Source/WebCore/page/NavigatorBase.h:
* Source/WebCore/page/OpportunisticTaskScheduler.h:
* Source/WebCore/page/Page.h:
* Source/WebCore/page/PageOverlay.h:
* Source/WebCore/page/ResizeObserver.h:
* Source/WebCore/page/UndoItem.h:
* Source/WebCore/page/UndoManager.h:
* Source/WebCore/platform/animation/AcceleratedEffect.h:
* Source/WebCore/platform/audio/mac/AudioHardwareListenerMac.h:
* Source/WebCore/platform/graphics/FontSelector.h:
* Source/WebCore/platform/graphics/Image.h:
* Source/WebCore/platform/graphics/ImageObserver.h:
* Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.h:
* Source/WebCore/platform/mac/DataDetectorHighlight.h:
* Source/WebCore/plugins/DOMPlugin.h:
* Source/WebCore/plugins/PluginInfoProvider.h:
* Source/WebCore/rendering/style/StyleImage.h:
* Source/WebCore/svg/properties/SVGAttributeAnimator.h:
* Source/WebCore/testing/MockCDMFactory.h:
* Source/WebCore/testing/ServiceWorkerInternals.h:
* Source/WebCore/workers/service/background-fetch/BackgroundFetchManager.h:
* Source/WebCore/workers/service/background-fetch/BackgroundFetchStore.h:
* Source/WebCore/workers/service/server/SWServer.h:
* Source/WebCore/workers/service/server/SWServerRegistration.h:
* Source/WebCore/workers/service/server/SWServerWorker.h:
* Source/WebCore/worklets/Worklet.h:
* Source/WebDriver/WebSocketServer.h:
* Source/WebGPU/WebGPU/BindGroup.h:
* Source/WebGPU/WebGPU/BindGroupLayout.h:
* Source/WebGPU/WebGPU/Buffer.h:
* Source/WebGPU/WebGPU/CommandBuffer.h:
* Source/WebGPU/WebGPU/CommandEncoder.h:
* Source/WebGPU/WebGPU/ComputePipeline.h:
* Source/WebGPU/WebGPU/ExternalTexture.h:
* Source/WebGPU/WebGPU/PipelineLayout.h:
* Source/WebGPU/WebGPU/RenderPassEncoder.h:
* Source/WebGPU/WebGPU/RenderPipeline.h:
* Source/WebGPU/WebGPU/Texture.h:
* Source/WebGPU/WebGPU/TextureView.h:
* Source/WebGPU/WebGPU/XRBinding.h:
* Source/WebGPU/WebGPU/XRProjectionLayer.h:
* Source/WebGPU/WebGPU/XRSubImage.h:
* Source/WebGPU/WebGPU/XRView.h:
* Source/WebKit/GPUProcess/ShapeDetection/ShapeDetectionObjectHeap.h:
* Source/WebKit/GPUProcess/graphics/WebGPU/WebGPUObjectHeap.h:
* Source/WebKit/NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.h:
* Source/WebKit/NetworkProcess/cache/NetworkCache.h:
* Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.h:
* Source/WebKit/NetworkProcess/webtransport/NetworkTransportReceiveStream.h:
* Source/WebKit/Platform/cocoa/WebPrivacyHelpers.h:
* Source/WebKit/UIProcess/Authentication/cocoa/SecKeyProxyStore.h:
* Source/WebKit/UIProcess/BrowsingContextGroup.h:
* Source/WebKit/UIProcess/Cocoa/ExtensionCapabilityGranter.h:
* Source/WebKit/UIProcess/Extensions/WebExtensionMenuItem.h:
* Source/WebKit/UIProcess/Extensions/WebExtensionTab.h:
* Source/WebKit/UIProcess/Extensions/WebExtensionWindow.h:
* Source/WebKit/UIProcess/FrameProcess.h:
* Source/WebKit/UIProcess/ViewSnapshotStore.h:
* Source/WebKit/UIProcess/WebAuthentication/Cocoa/CcidConnection.h:
* Source/WebKit/UIProcess/WebAuthentication/Cocoa/NfcConnection.h:
* Source/WebKit/UIProcess/WebDataListSuggestionsDropdown.h:
* Source/WebKit/UIProcess/WebDateTimePicker.h:
* Source/WebKit/WebProcess/WebPage/IPCTestingAPI.cpp:
* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteLayerTreeContext.h:
* Source/WebKit/WebProcess/WebPage/WebURLSchemeHandlerProxy.h:
* Source/WebKit/WebProcess/WebPage/WebURLSchemeTaskProxy.h:

Canonical link: https://commits.webkit.org/287242@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list