OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |