Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 772188b773db8a6bd494b7c5f8ad9eb73e1ed5a5
      
https://github.com/WebKit/WebKit/commit/772188b773db8a6bd494b7c5f8ad9eb73e1ed5a5
  Author: Ruthvik Konda <[email protected]>
  Date:   2026-05-15 (Fri, 15 May 2026)

  Changed paths:
    M Source/WebCore/style/StyleScope.cpp
    M Source/WebCore/style/StyleTreeResolver.cpp
    M Source/WebCore/style/Styleable.cpp
    M Source/WebCore/style/computed/StyleComputedStyleBase+SettersInlines.h
    M 
Source/WebCore/style/computed/StyleComputedStyleProperties+SettersCustomInlines.h
    M Source/WebCore/style/computed/data/StyleCustomPropertyData.cpp
    M Source/WebCore/style/values/anchor-position/StylePositionTryFallback.cpp
    M Source/WebCore/style/values/images/kinds/StyleFilterImage.cpp

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

Reviewed by Anne van Kesteren.

Mechanical migration from brace-initialized Ref temporaries to the protect()
free function in Source/WebCore/style, aligning with the codebase-wide
transition.

Three of the ten sites are local-variable initializations where the style
checker (safercpp/protected_getter_for_init) forbids protect(); those are
converted to direct brace-init form (Ref x { y };) instead.

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

* Source/WebCore/style/StyleScope.cpp:
(WebCore::Style::Scope::createOrFindSharedShadowTreeResolver):
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resolveComposedTree):
* Source/WebCore/style/Styleable.cpp:
(WebCore::updateCSSTransitionsForStyleableAndProperty):
* Source/WebCore/style/computed/StyleComputedStyleBase+SettersInlines.h:
* 
Source/WebCore/style/computed/StyleComputedStyleProperties+SettersCustomInlines.h:
* Source/WebCore/style/computed/data/StyleCustomPropertyData.cpp:
(WebCore::Style::CustomPropertyData::CustomPropertyData):
* Source/WebCore/style/values/anchor-position/StylePositionTryFallback.cpp:
(WebCore::Style::CSSValueConversion<PositionTryFallback>::operator()):
* Source/WebCore/style/values/images/kinds/StyleFilterImage.cpp:
(WebCore::Style::FilterImage::image):

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



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

Reply via email to