commit | fb47811539cb977bc1f3f68758059604c262aa47 | [log] [tgz] |
---|---|---|
author | heycam@apple.com <heycam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Sat Jun 18 05:54:10 2022 +0000 |
committer | heycam@apple.com <heycam@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Sat Jun 18 05:54:10 2022 +0000 |
tree | 2b5c3e124f58c031044f5dda2deffbc54e48f9a8 | |
parent | be9027216ccda343e2e5dc73713a5efd6b798614 [diff] |
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 git-svn-id: http://svn.webkit.org/repository/webkit/trunk@295657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/svg/properties/SVGAnimatedProperty.h b/Source/WebCore/svg/properties/SVGAnimatedProperty.h index 7e1cbd4..3af8fc4 100644 --- a/Source/WebCore/svg/properties/SVGAnimatedProperty.h +++ b/Source/WebCore/svg/properties/SVGAnimatedProperty.h
@@ -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); }