Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 81cc3782964dc578acc257645c50d2f6f2c2391e https://github.com/WebKit/WebKit/commit/81cc3782964dc578acc257645c50d2f6f2c2391e Author: Youenn Fablet <you...@apple.com> Date: 2025-08-21 (Thu, 21 Aug 2025)
Changed paths: M Source/WebCore/SaferCPPExpectations/NoUncheckedPtrMemberCheckerExpectations M Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations M Source/WebCore/dom/Document.cpp M Source/WebCore/dom/Document.h M Source/WebCore/platform/OrientationNotifier.h M Source/WebCore/platform/mediastream/RealtimeVideoCaptureSource.h M Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.h M Source/WebCore/platform/mock/MockRealtimeVideoSource.h Log Message: ----------- Modernize OrientationNotifier https://bugs.webkit.org/show_bug.cgi?id=297656 rdar://158765573 Reviewed by Jean-Yves Avenard. We remove the need for OrientationNotifier to be a CheckedPtr. We make OrientationNotifier use a weak hash set to handle observers instead of a Vector as it is simpler and safer to use. To do so, we make OrientationNotifier::Observer a AbstractThreadSafeRefCountedAndCanMakeWeakPtr and we make RealtimeVideoCaptureSource a OrientationNotifier::Observer instead of its children classes. A follow-up patch might relocate orientation handling in RealtimeVideoCaptureSource as well as a furuther improvement. Canonical link: https://commits.webkit.org/299001@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes