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

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

Issue 177703004: [SVG] Remove SVGAnimatedPropertyMacros.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove ws Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGPathElement.h ('k') | Source/core/svg/SVGPatternElement.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) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "core/svg/SVGPathSegLinetoRel.h" 43 #include "core/svg/SVGPathSegLinetoRel.h"
44 #include "core/svg/SVGPathSegLinetoVerticalAbs.h" 44 #include "core/svg/SVGPathSegLinetoVerticalAbs.h"
45 #include "core/svg/SVGPathSegLinetoVerticalRel.h" 45 #include "core/svg/SVGPathSegLinetoVerticalRel.h"
46 #include "core/svg/SVGPathSegMovetoAbs.h" 46 #include "core/svg/SVGPathSegMovetoAbs.h"
47 #include "core/svg/SVGPathSegMovetoRel.h" 47 #include "core/svg/SVGPathSegMovetoRel.h"
48 #include "core/svg/SVGPathUtilities.h" 48 #include "core/svg/SVGPathUtilities.h"
49 #include "core/svg/SVGPointTearOff.h" 49 #include "core/svg/SVGPointTearOff.h"
50 50
51 namespace WebCore { 51 namespace WebCore {
52 52
53 // Animated property definitions
54 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGPathElement)
55 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement)
56 END_REGISTER_ANIMATED_PROPERTIES
57
58 inline SVGPathElement::SVGPathElement(Document& document) 53 inline SVGPathElement::SVGPathElement(Document& document)
59 : SVGGeometryElement(SVGNames::pathTag, document) 54 : SVGGeometryElement(SVGNames::pathTag, document)
60 , m_pathLength(SVGAnimatedNumber::create(this, SVGNames::pathLengthAttr, SVG Number::create())) 55 , m_pathLength(SVGAnimatedNumber::create(this, SVGNames::pathLengthAttr, SVG Number::create()))
61 , m_pathSegList(SVGAnimatedPath::create(this, SVGNames::dAttr)) 56 , m_pathSegList(SVGAnimatedPath::create(this, SVGNames::dAttr))
62 { 57 {
63 ScriptWrappable::init(this); 58 ScriptWrappable::init(this);
64 59
65 addToPropertyMap(m_pathLength); 60 addToPropertyMap(m_pathLength);
66 addToPropertyMap(m_pathSegList); 61 addToPropertyMap(m_pathSegList);
67 } 62 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 285
291 // FIXME: Eventually we should support getBBox for detached elements. 286 // FIXME: Eventually we should support getBBox for detached elements.
292 if (!renderer()) 287 if (!renderer())
293 return FloatRect(); 288 return FloatRect();
294 289
295 RenderSVGPath* renderer = toRenderSVGPath(this->renderer()); 290 RenderSVGPath* renderer = toRenderSVGPath(this->renderer());
296 return renderer->path().boundingRect(); 291 return renderer->path().boundingRect();
297 } 292 }
298 293
299 } 294 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathElement.h ('k') | Source/core/svg/SVGPatternElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698