| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 } | 211 } |
| 212 | 212 |
| 213 SVGElement::InvalidationGuard invalidationGuard(this); | 213 SVGElement::InvalidationGuard invalidationGuard(this); |
| 214 | 214 |
| 215 // Reattach so the isValid() check will be run again during renderer creatio
n. | 215 // Reattach so the isValid() check will be run again during renderer creatio
n. |
| 216 if (SVGTests::isKnownAttribute(attrName)) { | 216 if (SVGTests::isKnownAttribute(attrName)) { |
| 217 lazyReattachIfAttached(); | 217 lazyReattachIfAttached(); |
| 218 return; | 218 return; |
| 219 } | 219 } |
| 220 | 220 |
| 221 RenderObject* object = renderer(); | 221 LayoutObject* object = renderer(); |
| 222 if (!object) | 222 if (!object) |
| 223 return; | 223 return; |
| 224 | 224 |
| 225 if (attrName == SVGNames::transformAttr) { | 225 if (attrName == SVGNames::transformAttr) { |
| 226 object->setNeedsTransformUpdate(); | 226 object->setNeedsTransformUpdate(); |
| 227 markForLayoutAndParentResourceInvalidation(object); | 227 markForLayoutAndParentResourceInvalidation(object); |
| 228 return; | 228 return; |
| 229 } | 229 } |
| 230 | 230 |
| 231 ASSERT_NOT_REACHED(); | 231 ASSERT_NOT_REACHED(); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 260 return FloatRect(); | 260 return FloatRect(); |
| 261 | 261 |
| 262 return renderer()->objectBoundingBox(); | 262 return renderer()->objectBoundingBox(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 PassRefPtrWillBeRawPtr<SVGRectTearOff> SVGGraphicsElement::getBBoxFromJavascript
() | 265 PassRefPtrWillBeRawPtr<SVGRectTearOff> SVGGraphicsElement::getBBoxFromJavascript
() |
| 266 { | 266 { |
| 267 return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, PropertyIsNotAn
imVal); | 267 return SVGRectTearOff::create(SVGRect::create(getBBox()), 0, PropertyIsNotAn
imVal); |
| 268 } | 268 } |
| 269 | 269 |
| 270 RenderObject* SVGGraphicsElement::createRenderer(const RenderStyle&) | 270 LayoutObject* SVGGraphicsElement::createRenderer(const RenderStyle&) |
| 271 { | 271 { |
| 272 // By default, any subclass is expected to do path-based drawing | 272 // By default, any subclass is expected to do path-based drawing |
| 273 return new RenderSVGPath(this); | 273 return new RenderSVGPath(this); |
| 274 } | 274 } |
| 275 | 275 |
| 276 void SVGGraphicsElement::toClipPath(Path& path) | 276 void SVGGraphicsElement::toClipPath(Path& path) |
| 277 { | 277 { |
| 278 updatePathFromGraphicsElement(this, path); | 278 updatePathFromGraphicsElement(this, path); |
| 279 path.transform(calculateAnimatedLocalTransform()); | 279 path.transform(calculateAnimatedLocalTransform()); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } | 282 } |
| OLD | NEW |