Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1629)

Unified Diff: Source/core/svg/SVGAnimateMotionElement.cpp

Issue 21262002: [SVG] animateMotion is freezing at the end by default (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/svg/animations/script-tests/animateMotion-fill-remove.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAnimateMotionElement.cpp
diff --git a/Source/core/svg/SVGAnimateMotionElement.cpp b/Source/core/svg/SVGAnimateMotionElement.cpp
index fc574ab5f74d2dc8741b04a5b84f363c39473458..73a3ee64ca76bcfef53bb5c6f38e7cc3a028f8aa 100644
--- a/Source/core/svg/SVGAnimateMotionElement.cpp
+++ b/Source/core/svg/SVGAnimateMotionElement.cpp
@@ -200,8 +200,17 @@ void SVGAnimateMotionElement::clearAnimatedType(SVGElement* targetElement)
{
if (!targetElement)
return;
- if (AffineTransform* transform = targetElement->supplementalTransform())
- transform->makeIdentity();
+
+ AffineTransform* transform = targetElement->supplementalTransform();
+ if (!transform)
+ return;
+
+ transform->makeIdentity();
+
+ if (RenderObject* targetRenderer = targetElement->renderer()) {
+ targetRenderer->setNeedsTransformUpdate();
+ RenderSVGResource::markForLayoutAndParentResourceInvalidation(targetRenderer);
+ }
}
bool SVGAnimateMotionElement::calculateToAtEndOfDurationValue(const String& toAtEndOfDurationString)
« no previous file with comments | « LayoutTests/svg/animations/script-tests/animateMotion-fill-remove.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698