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

Side by Side Diff: Source/core/svg/SVGLinearGradientElement.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/SVGLinearGradientElement.h ('k') | Source/core/svg/SVGMPathElement.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 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 15 matching lines...) Expand all
26 #include "core/svg/SVGLinearGradientElement.h" 26 #include "core/svg/SVGLinearGradientElement.h"
27 27
28 #include "core/rendering/svg/RenderSVGResourceLinearGradient.h" 28 #include "core/rendering/svg/RenderSVGResourceLinearGradient.h"
29 #include "core/svg/LinearGradientAttributes.h" 29 #include "core/svg/LinearGradientAttributes.h"
30 #include "core/svg/SVGElementInstance.h" 30 #include "core/svg/SVGElementInstance.h"
31 #include "core/svg/SVGLength.h" 31 #include "core/svg/SVGLength.h"
32 #include "core/svg/SVGTransformList.h" 32 #include "core/svg/SVGTransformList.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 // Animated property definitions
37 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGLinearGradientElement)
38 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGradientElement)
39 END_REGISTER_ANIMATED_PROPERTIES
40
41 inline SVGLinearGradientElement::SVGLinearGradientElement(Document& document) 36 inline SVGLinearGradientElement::SVGLinearGradientElement(Document& document)
42 : SVGGradientElement(SVGNames::linearGradientTag, document) 37 : SVGGradientElement(SVGNames::linearGradientTag, document)
43 , m_x1(SVGAnimatedLength::create(this, SVGNames::x1Attr, SVGLength::create(L engthModeWidth))) 38 , m_x1(SVGAnimatedLength::create(this, SVGNames::x1Attr, SVGLength::create(L engthModeWidth)))
44 , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(L engthModeHeight))) 39 , m_y1(SVGAnimatedLength::create(this, SVGNames::y1Attr, SVGLength::create(L engthModeHeight)))
45 , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(L engthModeWidth))) 40 , m_x2(SVGAnimatedLength::create(this, SVGNames::x2Attr, SVGLength::create(L engthModeWidth)))
46 , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(L engthModeHeight))) 41 , m_y2(SVGAnimatedLength::create(this, SVGNames::y2Attr, SVGLength::create(L engthModeHeight)))
47 { 42 {
48 ScriptWrappable::init(this); 43 ScriptWrappable::init(this);
49 44
50 // Spec: If the x2 attribute is not specified, the effect is as if a value o f "100%" were specified. 45 // Spec: If the x2 attribute is not specified, the effect is as if a value o f "100%" were specified.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 183
189 bool SVGLinearGradientElement::selfHasRelativeLengths() const 184 bool SVGLinearGradientElement::selfHasRelativeLengths() const
190 { 185 {
191 return m_x1->currentValue()->isRelative() 186 return m_x1->currentValue()->isRelative()
192 || m_y1->currentValue()->isRelative() 187 || m_y1->currentValue()->isRelative()
193 || m_x2->currentValue()->isRelative() 188 || m_x2->currentValue()->isRelative()
194 || m_y2->currentValue()->isRelative(); 189 || m_y2->currentValue()->isRelative();
195 } 190 }
196 191
197 } 192 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGLinearGradientElement.h ('k') | Source/core/svg/SVGMPathElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698