Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f2001e5dbc70f67dc6c12639a20769d87cd5a70f
https://github.com/WebKit/WebKit/commit/f2001e5dbc70f67dc6c12639a20769d87cd5a70f
Author: Ruthvik Konda <[email protected]>
Date: 2026-05-20 (Wed, 20 May 2026)
Changed paths:
M Source/WebCore/style/StyleScope.cpp
M Source/WebCore/style/values/anchor-position/StylePositionTryFallback.cpp
Log Message:
-----------
Use protect() instead of RefPtr { } in style code
https://bugs.webkit.org/show_bug.cgi?id=315113
rdar://177450429
Reviewed by Ryosuke Niwa.
Mechanical migration from brace-initialized RefPtr temporaries to the
protect() free function in Source/WebCore/style, aligning with the
codebase-wide transition. Follow-up to PR #64895 (which converted the
Ref { } instances in the same directory).
All three sites are inline temporaries / return values, which the protect()
free function handles directly.
No new tests needed (no behavioral change, style-only refactor).
* Source/WebCore/style/StyleScope.cpp:
(WebCore::Style::Scope::makeResolverSharingKey):
* Source/WebCore/style/values/anchor-position/StylePositionTryFallback.cpp:
(WebCore::Style::computedPositionAreaValue):
(WebCore::Style::operator<<):
Canonical link: https://commits.webkit.org/313612@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications