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

Side by Side Diff: Source/core/svg/SVGAnimateMotionElement.cpp

Issue 924943009: Fix template angle bracket syntax in svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « Source/core/svg/SVGAnimateElement.cpp ('k') | Source/core/svg/SVGAnimatedAngle.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org>
3 * Copyright (C) 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2008 Apple Inc. All rights reserved. 4 * Copyright (C) 2008 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 return; 282 return;
283 283
284 if (LayoutObject* renderer = targetElement->renderer()) 284 if (LayoutObject* renderer = targetElement->renderer())
285 markForLayoutAndParentResourceInvalidation(renderer); 285 markForLayoutAndParentResourceInvalidation(renderer);
286 286
287 AffineTransform* t = targetElement->animateMotionTransform(); 287 AffineTransform* t = targetElement->animateMotionTransform();
288 if (!t) 288 if (!t)
289 return; 289 return;
290 290
291 // ...except in case where we have additional instances in <use> trees. 291 // ...except in case where we have additional instances in <use> trees.
292 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement> >& instances = ta rgetElement->instancesForElement(); 292 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>>& instances = tar getElement->instancesForElement();
293 for (SVGElement* shadowTreeElement : instances) { 293 for (SVGElement* shadowTreeElement : instances) {
294 ASSERT(shadowTreeElement); 294 ASSERT(shadowTreeElement);
295 AffineTransform* transform = shadowTreeElement->animateMotionTransform() ; 295 AffineTransform* transform = shadowTreeElement->animateMotionTransform() ;
296 if (!transform) 296 if (!transform)
297 continue; 297 continue;
298 transform->setMatrix(t->a(), t->b(), t->c(), t->d(), t->e(), t->f()); 298 transform->setMatrix(t->a(), t->b(), t->c(), t->d(), t->e(), t->f());
299 if (LayoutObject* renderer = shadowTreeElement->renderer()) { 299 if (LayoutObject* renderer = shadowTreeElement->renderer()) {
300 renderer->setNeedsTransformUpdate(); 300 renderer->setNeedsTransformUpdate();
301 markForLayoutAndParentResourceInvalidation(renderer); 301 markForLayoutAndParentResourceInvalidation(renderer);
302 } 302 }
(...skipping 14 matching lines...) Expand all
317 317
318 void SVGAnimateMotionElement::updateAnimationMode() 318 void SVGAnimateMotionElement::updateAnimationMode()
319 { 319 {
320 if (!m_animationPath.isEmpty()) 320 if (!m_animationPath.isEmpty())
321 setAnimationMode(PathAnimation); 321 setAnimationMode(PathAnimation);
322 else 322 else
323 SVGAnimationElement::updateAnimationMode(); 323 SVGAnimationElement::updateAnimationMode();
324 } 324 }
325 325
326 } 326 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGAnimateElement.cpp ('k') | Source/core/svg/SVGAnimatedAngle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698