| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2014 Google, Inc. | 4 * Copyright (C) 2014 Google, Inc. |
| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 return matrix; | 182 return matrix; |
| 183 } | 183 } |
| 184 | 184 |
| 185 AffineTransform* SVGGraphicsElement::animateMotionTransform() | 185 AffineTransform* SVGGraphicsElement::animateMotionTransform() |
| 186 { | 186 { |
| 187 return ensureSVGRareData()->animateMotionTransform(); | 187 return ensureSVGRareData()->animateMotionTransform(); |
| 188 } | 188 } |
| 189 | 189 |
| 190 void SVGGraphicsElement::svgAttributeChanged(const QualifiedName& attrName) | 190 void SVGGraphicsElement::svgAttributeChanged(const QualifiedName& attrName) |
| 191 { | 191 { |
| 192 // Reattach so the isValid() check will be run again during renderer creatio
n. | 192 // Reattach so the isValid() check will be run again during layoutObject cre
ation. |
| 193 if (SVGTests::isKnownAttribute(attrName)) { | 193 if (SVGTests::isKnownAttribute(attrName)) { |
| 194 SVGElement::InvalidationGuard invalidationGuard(this); | 194 SVGElement::InvalidationGuard invalidationGuard(this); |
| 195 lazyReattachIfAttached(); | 195 lazyReattachIfAttached(); |
| 196 return; | 196 return; |
| 197 } | 197 } |
| 198 | 198 |
| 199 if (attrName == SVGNames::transformAttr) { | 199 if (attrName == SVGNames::transformAttr) { |
| 200 LayoutObject* object = layoutObject(); | 200 LayoutObject* object = layoutObject(); |
| 201 if (!object) | 201 if (!object) |
| 202 return; | 202 return; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 return new LayoutSVGPath(this); | 252 return new LayoutSVGPath(this); |
| 253 } | 253 } |
| 254 | 254 |
| 255 void SVGGraphicsElement::toClipPath(Path& path) | 255 void SVGGraphicsElement::toClipPath(Path& path) |
| 256 { | 256 { |
| 257 updatePathFromGraphicsElement(this, path); | 257 updatePathFromGraphicsElement(this, path); |
| 258 path.transform(calculateAnimatedLocalTransform()); | 258 path.transform(calculateAnimatedLocalTransform()); |
| 259 } | 259 } |
| 260 | 260 |
| 261 } | 261 } |
| OLD | NEW |