| Index: third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp b/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp
|
| index b9ca17df7b6cafd9c4eb8042cc752c034b3ab695..7d467b58f0df4f01a4757b7605f58abd54c29a23 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGAnimateMotionElement.cpp
|
| @@ -51,11 +51,13 @@ bool SVGAnimateMotionElement::hasValidAttributeType() {
|
| if (!targetElement)
|
| return false;
|
|
|
| - // We don't have a special attribute name to verify the animation type. Check the element name instead.
|
| + // We don't have a special attribute name to verify the animation type. Check
|
| + // the element name instead.
|
| if (!targetElement->isSVGGraphicsElement())
|
| return false;
|
| // Spec: SVG 1.1 section 19.2.15
|
| - // FIXME: svgTag is missing. Needs to be checked, if transforming <svg> could cause problems.
|
| + // FIXME: svgTag is missing. Needs to be checked, if transforming <svg> could
|
| + // cause problems.
|
| return (
|
| isSVGGElement(*targetElement) || isSVGDefsElement(*targetElement) ||
|
| isSVGUseElement(*targetElement) || isSVGImageElement(*targetElement) ||
|
| @@ -207,8 +209,7 @@ void SVGAnimateMotionElement::calculateAnimatedValue(float percentage,
|
| unsigned repeatCount,
|
| SVGSMILElement*) {
|
| SVGElement* targetElement = this->targetElement();
|
| - if (!targetElement)
|
| - return;
|
| + DCHECK(targetElement);
|
| AffineTransform* transform = targetElement->animateMotionTransform();
|
| if (!transform)
|
| return;
|
| @@ -261,7 +262,8 @@ void SVGAnimateMotionElement::calculateAnimatedValue(float percentage,
|
| }
|
|
|
| void SVGAnimateMotionElement::applyResultsToTarget() {
|
| - // We accumulate to the target element transform list so there is not much to do here.
|
| + // We accumulate to the target element transform list so there is not much to
|
| + // do here.
|
| SVGElement* targetElement = this->targetElement();
|
| if (!targetElement)
|
| return;
|
|
|