Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7901fa53097755901ce0f45505aa65ab2ae62721
https://github.com/WebKit/WebKit/commit/7901fa53097755901ce0f45505aa65ab2ae62721
Author: Ahmad Saleem <[email protected]>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M Source/WebCore/svg/animation/SVGSMILElement.cpp
M Source/WebCore/svg/animation/SVGSMILElement.h
Log Message:
-----------
Use default member initializers for SVGSMILElement data members
https://bugs.webkit.org/show_bug.cgi?id=316580
rdar://179040357
Reviewed by Dan Glastonbury.
Move SVGSMILElement's data members to default member initializers in the
header instead of its 18-entry constructor init list. The header was already
half-migrated (only m_lastDispatchedRepeatIteration used the modern style),
so the two styles had drifted apart.
The cached-time members now initialize from invalidCachedTime instead of a
bare -1 literal. To make that constant visible at the header initializer
sites, it moves from a file-scope definition in the .cpp into a
static constexpr double on SVGSMILElement; the reset/comparison sites in the
.cpp resolve to it unchanged. The init list now collapses to the base
SVGElement call plus m_attributeName(anyQName()). No change in behavior.
* Source/WebCore/svg/animation/SVGSMILElement.cpp:
(WebCore::SVGSMILElement::SVGSMILElement):
* Source/WebCore/svg/animation/SVGSMILElement.h:
Canonical link: https://commits.webkit.org/314791@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications