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

Side by Side Diff: Source/core/svg/SVGLineElement.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/SVGLineElement.h ('k') | Source/core/svg/SVGLinearGradientElement.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 10 matching lines...) Expand all
21 #include "config.h" 21 #include "config.h"
22 22
23 #include "core/svg/SVGLineElement.h" 23 #include "core/svg/SVGLineElement.h"
24 24
25 #include "core/rendering/svg/RenderSVGResource.h" 25 #include "core/rendering/svg/RenderSVGResource.h"
26 #include "core/svg/SVGElementInstance.h" 26 #include "core/svg/SVGElementInstance.h"
27 #include "core/svg/SVGLength.h" 27 #include "core/svg/SVGLength.h"
28 28
29 namespace WebCore { 29 namespace WebCore {
30 30
31 // Animated property definitions
32 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGLineElement)
33 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement)
34 END_REGISTER_ANIMATED_PROPERTIES
35
36 inline SVGLineElement::SVGLineElement(Document& document) 31 inline SVGLineElement::SVGLineElement(Document& document)
37 : SVGGeometryElement(SVGNames::lineTag, document) 32 : SVGGeometryElement(SVGNames::lineTag, document)
38 , m_x1(SVGAnimatedLength::create(this, SVGNames::x1Attr, SVGLength::create(L engthModeWidth))) 33 , m_x1(SVGAnimatedLength::create(this, SVGNames::x1Attr, SVGLength::create(L engthModeWidth)))
39 , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(L engthModeHeight))) 34 , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(L engthModeHeight)))
40 , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(L engthModeWidth))) 35 , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(L engthModeWidth)))
41 , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(L engthModeHeight))) 36 , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(L engthModeHeight)))
42 { 37 {
43 ScriptWrappable::init(this); 38 ScriptWrappable::init(this);
44 39
45 addToPropertyMap(m_x1); 40 addToPropertyMap(m_x1);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 112
118 bool SVGLineElement::selfHasRelativeLengths() const 113 bool SVGLineElement::selfHasRelativeLengths() const
119 { 114 {
120 return m_x1->currentValue()->isRelative() 115 return m_x1->currentValue()->isRelative()
121 || m_y1->currentValue()->isRelative() 116 || m_y1->currentValue()->isRelative()
122 || m_x2->currentValue()->isRelative() 117 || m_x2->currentValue()->isRelative()
123 || m_y2->currentValue()->isRelative(); 118 || m_y2->currentValue()->isRelative();
124 } 119 }
125 120
126 } 121 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLineElement.h ('k') | Source/core/svg/SVGLinearGradientElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698