Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 144a04f29f5bbd9dd230d9cd89ccfc39c467bcbd
      
https://github.com/WebKit/WebKit/commit/144a04f29f5bbd9dd230d9cd89ccfc39c467bcbd
  Author: Ruthvik Konda <[email protected]>
  Date:   2026-07-02 (Thu, 02 Jul 2026)

  Changed paths:
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/svg/animation/SMILTimeContainer.cpp
    M Source/WebCore/svg/animation/SVGSMILElement.cpp
    M Source/WebCore/svg/graphics/filters/SVGFilterEffectGraph.h
    A Source/WebCore/svg/graphics/filters/SVGFilterPrimitiveGraph.cpp
    M Source/WebCore/svg/graphics/filters/SVGFilterPrimitiveGraph.h
    M Source/WebCore/svg/graphics/filters/SVGFilterRenderer.cpp

  Log Message:
  -----------
  Use protect() instead of Ref { } in SVG animation and graphics code
https://bugs.webkit.org/show_bug.cgi?id=317146
rdar://179744332

Reviewed by Anne van Kesteren.

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

All 7 instances are function arguments. In SVGFilterPrimitiveGraph.h, the
forward declaration of SVGFilterPrimitiveStandardAttributes is replaced with
a full include so that protect() can resolve the type.

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

* Source/WebCore/svg/animation/SMILTimeContainer.cpp:
(WebCore::SMILTimeContainer::processScheduledAnimations):
* Source/WebCore/svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::disconnectConditions):
* Source/WebCore/svg/graphics/filters/SVGFilterEffectGraph.h:
(WebCore::SVGFilterEffectGraph::SVGFilterEffectGraph):
(WebCore::SVGFilterEffectGraph::addNamedNode):
* Source/WebCore/svg/graphics/filters/SVGFilterPrimitiveGraph.h:
(WebCore::SVGFilterPrimitiveGraph::addNamedNode):
* Source/WebCore/svg/graphics/filters/SVGFilterRenderer.cpp:
(WebCore::SVGFilterRenderer::apply):

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



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

Reply via email to