Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1c840423dadd667e15edaa641e936149dc163d64
      
https://github.com/WebKit/WebKit/commit/1c840423dadd667e15edaa641e936149dc163d64
  Author: Ruthvik Konda <[email protected]>
  Date:   2026-04-21 (Tue, 21 Apr 2026)

  Changed paths:
    M Source/WebCore/Modules/webxr/WebXRFrame.cpp
    M Source/WebCore/Modules/webxr/WebXRInputSource.cpp
    M Source/WebCore/Modules/webxr/WebXRInputSourceArray.cpp
    M Source/WebCore/Modules/webxr/WebXRSession.cpp
    M Source/WebCore/Modules/webxr/WebXRSystem.cpp
    M Source/WebCore/Modules/webxr/XRWebGLBinding.cpp
    M Source/WebCore/testing/WebXRTest.cpp
    M Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.cpp

  Log Message:
  -----------
  Use protect() instead of Ref { } in WebXR code
https://bugs.webkit.org/show_bug.cgi?id=312840
rdar://175206688

Reviewed by Ryosuke Niwa.

Mechanical migration from Ref { expr } to protect(expr) across all WebXR
code, aligning with the codebase-wide transition away from brace-initialized
smart pointer temporaries.

No new tests needed (no behavioral change, style-only refactor).

* Source/WebCore/Modules/webxr/WebXRFrame.cpp:
(WebCore::WebXRFrame::views):
* Source/WebCore/Modules/webxr/WebXRInputSource.cpp:
(WebCore::WebXRInputSource::update):
* Source/WebCore/Modules/webxr/WebXRInputSourceArray.cpp:
(WebCore::WebXRInputSourceArray::update):
* Source/WebCore/Modules/webxr/WebXRSession.cpp:
(WebCore::WebXRSession::shutdown):
(WebCore::WebXRSession::visibilityStateChanged):
(WebCore::WebXRSession::requestAnimationFrame):
(WebCore::WebXRSession::requestHitTestSource):
(WebCore::WebXRSession::requestTransientInputHitTestSource):
* Source/WebCore/Modules/webxr/WebXRSystem.cpp:
(WebCore::WebXRSystem::ensureImmersiveXRDevicesAreEnumerated):
* Source/WebCore/Modules/webxr/XRWebGLBinding.cpp:
(WebCore::XRWebGLBinding::getSubImage):
* Source/WebCore/testing/WebXRTest.cpp:
(WebCore::WebXRTest::simulateDeviceConnection):
* Source/WebKit/WebProcess/XR/PlatformXRSystemProxy.cpp:
(WebKit::PlatformXRSystemProxy::requestHitTestSource):
(WebKit::PlatformXRSystemProxy::requestTransientInputHitTestSource):

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



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

Reply via email to