| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 return; | 277 return; |
| 278 | 278 |
| 279 if (LayoutObject* layoutObject = targetElement->layoutObject()) | 279 if (LayoutObject* layoutObject = targetElement->layoutObject()) |
| 280 markForLayoutAndParentResourceInvalidation(layoutObject); | 280 markForLayoutAndParentResourceInvalidation(layoutObject); |
| 281 | 281 |
| 282 AffineTransform* t = targetElement->animateMotionTransform(); | 282 AffineTransform* t = targetElement->animateMotionTransform(); |
| 283 if (!t) | 283 if (!t) |
| 284 return; | 284 return; |
| 285 | 285 |
| 286 // ...except in case where we have additional instances in <use> trees. | 286 // ...except in case where we have additional instances in <use> trees. |
| 287 const WillBeHeapHashSet<RawPtrWillBeWeakMember<SVGElement>>& instances = tar
getElement->instancesForElement(); | 287 const HeapHashSet<WeakMember<SVGElement>>& instances = targetElement->instan
cesForElement(); |
| 288 for (SVGElement* shadowTreeElement : instances) { | 288 for (SVGElement* shadowTreeElement : instances) { |
| 289 ASSERT(shadowTreeElement); | 289 ASSERT(shadowTreeElement); |
| 290 AffineTransform* transform = shadowTreeElement->animateMotionTransform()
; | 290 AffineTransform* transform = shadowTreeElement->animateMotionTransform()
; |
| 291 if (!transform) | 291 if (!transform) |
| 292 continue; | 292 continue; |
| 293 transform->setMatrix(t->a(), t->b(), t->c(), t->d(), t->e(), t->f()); | 293 transform->setMatrix(t->a(), t->b(), t->c(), t->d(), t->e(), t->f()); |
| 294 if (LayoutObject* layoutObject = shadowTreeElement->layoutObject()) { | 294 if (LayoutObject* layoutObject = shadowTreeElement->layoutObject()) { |
| 295 layoutObject->setNeedsTransformUpdate(); | 295 layoutObject->setNeedsTransformUpdate(); |
| 296 markForLayoutAndParentResourceInvalidation(layoutObject); | 296 markForLayoutAndParentResourceInvalidation(layoutObject); |
| 297 } | 297 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 312 | 312 |
| 313 void SVGAnimateMotionElement::updateAnimationMode() | 313 void SVGAnimateMotionElement::updateAnimationMode() |
| 314 { | 314 { |
| 315 if (!m_animationPath.isEmpty()) | 315 if (!m_animationPath.isEmpty()) |
| 316 setAnimationMode(PathAnimation); | 316 setAnimationMode(PathAnimation); |
| 317 else | 317 else |
| 318 SVGAnimationElement::updateAnimationMode(); | 318 SVGAnimationElement::updateAnimationMode(); |
| 319 } | 319 } |
| 320 | 320 |
| 321 } // namespace blink | 321 } // namespace blink |
| OLD | NEW |