Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: a484f6dcb463ffca50e388c1e4c3efb39472e280
https://github.com/WebKit/WebKit/commit/a484f6dcb463ffca50e388c1e4c3efb39472e280
Author: Ruthvik Konda <[email protected]>
Date: 2026-06-16 (Tue, 16 Jun 2026)
Changed paths:
M Source/WebCore/svg/SVGFilterElement.cpp
M Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp
M Source/WebCore/svg/SVGGradientElement.cpp
M Source/WebCore/svg/SVGLinearGradientElement.cpp
M Source/WebCore/svg/SVGRadialGradientElement.cpp
Log Message:
-----------
Use protect() instead of Ref { } in SVG filter and gradient element code
https://bugs.webkit.org/show_bug.cgi?id=317151
rdar://179747967
Reviewed by Anne van Kesteren.
Mechanical migration from brace-initialized Ref temporaries to the protect()
free function in SVG filter and gradient element files, aligning with the
codebase-wide transition.
All 23 instances follow the same pattern:
Ref { m_member }->setBaseValInternal(...).
No new tests needed (no behavioral change, style-only refactor).
* Source/WebCore/svg/SVGFilterElement.cpp:
(WebCore::SVGFilterElement::attributeChanged):
* Source/WebCore/svg/SVGFilterPrimitiveStandardAttributes.cpp:
(WebCore::SVGFilterPrimitiveStandardAttributes::attributeChanged):
* Source/WebCore/svg/SVGGradientElement.cpp:
(WebCore::SVGGradientElement::attributeChanged):
* Source/WebCore/svg/SVGLinearGradientElement.cpp:
(WebCore::SVGLinearGradientElement::attributeChanged):
* Source/WebCore/svg/SVGRadialGradientElement.cpp:
(WebCore::SVGRadialGradientElement::attributeChanged):
Canonical link: https://commits.webkit.org/315304@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications