Title: [295657] trunk/Source/WebCore/svg/properties/SVGAnimatedProperty.h
- Revision
- 295657
- Author
- [email protected]
- Date
- 2022-06-17 22:54:10 -0700 (Fri, 17 Jun 2022)
Log Message
SVGAnimatedProperty::isAnimating need not compute number of animators
https://bugs.webkit.org/show_bug.cgi?id=241732
Reviewed by Tim Horton.
We just need to know if there are any.
* Source/WebCore/svg/properties/SVGAnimatedProperty.h:
(WebCore::SVGAnimatedProperty::isAnimating const):
Canonical link: https://commits.webkit.org/251662@main
Modified Paths
Diff
Modified: trunk/Source/WebCore/svg/properties/SVGAnimatedProperty.h (295656 => 295657)
--- trunk/Source/WebCore/svg/properties/SVGAnimatedProperty.h 2022-06-18 04:26:27 UTC (rev 295656)
+++ trunk/Source/WebCore/svg/properties/SVGAnimatedProperty.h 2022-06-18 05:54:10 UTC (rev 295657)
@@ -53,7 +53,7 @@
virtual std::optional<String> synchronize() { return std::nullopt; }
// Control the animation life cycle.
- bool isAnimating() const { return m_animators.computeSize(); }
+ bool isAnimating() const { return !m_animators.computesEmpty(); }
virtual void startAnimation(SVGAttributeAnimator& animator) { m_animators.add(animator); }
virtual void stopAnimation(SVGAttributeAnimator& animator) { m_animators.remove(animator); }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes