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

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

Issue 660653004: Move supplemental transform to rare data (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 2 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 | « no previous file | Source/core/svg/SVGElement.h » ('j') | 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 3e2c25038ff6c8041a018fff7ad53732daea9657..f91e428678f3f7faff3ad459e93c9388a460b708 100644
--- a/Source/core/svg/SVGAnimateMotionElement.cpp
+++ b/Source/core/svg/SVGAnimateMotionElement.cpp
@@ -172,7 +172,7 @@ void SVGAnimateMotionElement::resetAnimatedType()
SVGElement* targetElement = this->targetElement();
if (!targetElement)
return;
- if (AffineTransform* transform = targetElement->supplementalTransform())
+ if (AffineTransform* transform = targetElement->animateMotionTransform())
transform->makeIdentity();
}
@@ -181,7 +181,7 @@ void SVGAnimateMotionElement::clearAnimatedType(SVGElement* targetElement)
if (!targetElement)
return;
- AffineTransform* transform = targetElement->supplementalTransform();
+ AffineTransform* transform = targetElement->animateMotionTransform();
if (!transform)
return;
@@ -225,7 +225,7 @@ void SVGAnimateMotionElement::calculateAnimatedValue(float percentage, unsigned
SVGElement* targetElement = this->targetElement();
if (!targetElement)
return;
- AffineTransform* transform = targetElement->supplementalTransform();
+ AffineTransform* transform = targetElement->animateMotionTransform();
if (!transform)
return;
@@ -285,7 +285,7 @@ void SVGAnimateMotionElement::applyResultsToTarget()
if (RenderObject* renderer = targetElement->renderer())
RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer);
- AffineTransform* t = targetElement->supplementalTransform();
+ AffineTransform* t = targetElement->animateMotionTransform();
if (!t)
return;
@@ -295,7 +295,7 @@ void SVGAnimateMotionElement::applyResultsToTarget()
for (WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >::const_iterator it = instances.begin(); it != end; ++it) {
SVGElement* shadowTreeElement = *it;
ASSERT(shadowTreeElement);
- AffineTransform* transform = shadowTreeElement->supplementalTransform();
+ AffineTransform* transform = shadowTreeElement->animateMotionTransform();
if (!transform)
continue;
transform->setMatrix(t->a(), t->b(), t->c(), t->d(), t->e(), t->f());
« no previous file with comments | « no previous file | Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698