Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 8240c6a579435092c5ebdac70e81c154598e5174
https://github.com/WebKit/WebKit/commit/8240c6a579435092c5ebdac70e81c154598e5174
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M Source/WebCore/svg/SVGTransformDistance.cpp
M Source/WebCore/svg/SVGTransformDistance.h
Log Message:
-----------
Use default member initializers for SVGTransformDistance data members
https://bugs.webkit.org/show_bug.cgi?id=316558
rdar://179026455
Reviewed by Taher Ali.
SVGTransformDistance has three constructors, and the m_type/m_angle/m_cx/m_cy
scalar members had no default initializers in the header, so two of the three
constructors redundantly re-initialized them to UNKNOWN/0/0/0.
Move { SVG_TRANSFORM_UNKNOWN }, { 0 }, { 0 }, { 0 } to default member
initializers in the header so every constructor stays in sync:
- The default constructor becomes = default.
- The from/to constructor drops the redundant m_angle/m_cx/m_cy inits, keeping
only m_type(fromSVGTransform.type()).
No change in behavior.
* Source/WebCore/svg/SVGTransformDistance.cpp:
(WebCore::SVGTransformDistance::SVGTransformDistance):
* Source/WebCore/svg/SVGTransformDistance.h:
Canonical link: https://commits.webkit.org/314781@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications