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

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: 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 53 // Animated property definitions
54 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGPathElement)
55 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement)
56 END_REGISTER_ANIMATED_PROPERTIES
57 54
58 inline SVGPathElement::SVGPathElement(Document& document) 55 inline SVGPathElement::SVGPathElement(Document& document)
59 : SVGGeometryElement(SVGNames::pathTag, document) 56 : SVGGeometryElement(SVGNames::pathTag, document)
60 , m_pathLength(SVGAnimatedNumber::create(this, SVGNames::pathLengthAttr, SVG Number::create())) 57 , m_pathLength(SVGAnimatedNumber::create(this, SVGNames::pathLengthAttr, SVG Number::create()))
61 , m_pathSegList(SVGAnimatedPath::create(this, SVGNames::dAttr)) 58 , m_pathSegList(SVGAnimatedPath::create(this, SVGNames::dAttr))
62 { 59 {
63 ScriptWrappable::init(this); 60 ScriptWrappable::init(this);
64 61
65 addToPropertyMap(m_pathLength); 62 addToPropertyMap(m_pathLength);
66 addToPropertyMap(m_pathSegList); 63 addToPropertyMap(m_pathSegList);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 287
291 // FIXME: Eventually we should support getBBox for detached elements. 288 // FIXME: Eventually we should support getBBox for detached elements.
292 if (!renderer()) 289 if (!renderer())
293 return FloatRect(); 290 return FloatRect();
294 291
295 RenderSVGPath* renderer = toRenderSVGPath(this->renderer()); 292 RenderSVGPath* renderer = toRenderSVGPath(this->renderer());
296 return renderer->path().boundingRect(); 293 return renderer->path().boundingRect();
297 } 294 }
298 295
299 } 296 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698