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

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

Issue 61753005: Remove SVGLocatable and SVGTransformable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix nits Created 7 years, 1 month 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
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) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 15 matching lines...) Expand all
26 #include "SVGNames.h" 26 #include "SVGNames.h"
27 #include "XLinkNames.h" 27 #include "XLinkNames.h"
28 #include "core/dom/Attribute.h" 28 #include "core/dom/Attribute.h"
29 #include "core/rendering/svg/RenderSVGHiddenContainer.h" 29 #include "core/rendering/svg/RenderSVGHiddenContainer.h"
30 #include "core/rendering/svg/RenderSVGPath.h" 30 #include "core/rendering/svg/RenderSVGPath.h"
31 #include "core/rendering/svg/RenderSVGResourceLinearGradient.h" 31 #include "core/rendering/svg/RenderSVGResourceLinearGradient.h"
32 #include "core/rendering/svg/RenderSVGResourceRadialGradient.h" 32 #include "core/rendering/svg/RenderSVGResourceRadialGradient.h"
33 #include "core/svg/SVGElementInstance.h" 33 #include "core/svg/SVGElementInstance.h"
34 #include "core/svg/SVGStopElement.h" 34 #include "core/svg/SVGStopElement.h"
35 #include "core/svg/SVGTransformList.h" 35 #include "core/svg/SVGTransformList.h"
36 #include "core/svg/SVGTransformable.h"
37 36
38 namespace WebCore { 37 namespace WebCore {
39 38
40 // Animated property definitions 39 // Animated property definitions
41 DEFINE_ANIMATED_ENUMERATION(SVGGradientElement, SVGNames::spreadMethodAttr, Spre adMethod, spreadMethod, SVGSpreadMethodType) 40 DEFINE_ANIMATED_ENUMERATION(SVGGradientElement, SVGNames::spreadMethodAttr, Spre adMethod, spreadMethod, SVGSpreadMethodType)
42 DEFINE_ANIMATED_ENUMERATION(SVGGradientElement, SVGNames::gradientUnitsAttr, Gra dientUnits, gradientUnits, SVGUnitTypes::SVGUnitType) 41 DEFINE_ANIMATED_ENUMERATION(SVGGradientElement, SVGNames::gradientUnitsAttr, Gra dientUnits, gradientUnits, SVGUnitTypes::SVGUnitType)
43 DEFINE_ANIMATED_TRANSFORM_LIST(SVGGradientElement, SVGNames::gradientTransformAt tr, GradientTransform, gradientTransform) 42 DEFINE_ANIMATED_TRANSFORM_LIST(SVGGradientElement, SVGNames::gradientTransformAt tr, GradientTransform, gradientTransform)
44 DEFINE_ANIMATED_STRING(SVGGradientElement, XLinkNames::hrefAttr, Href, href) 43 DEFINE_ANIMATED_STRING(SVGGradientElement, XLinkNames::hrefAttr, Href, href)
45 DEFINE_ANIMATED_BOOLEAN(SVGGradientElement, SVGNames::externalResourcesRequiredA ttr, ExternalResourcesRequired, externalResourcesRequired) 44 DEFINE_ANIMATED_BOOLEAN(SVGGradientElement, SVGNames::externalResourcesRequiredA ttr, ExternalResourcesRequired, externalResourcesRequired)
46 45
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 float r, g, b, a; 159 float r, g, b, a;
161 color.getRGBA(r, g, b, a); 160 color.getRGBA(r, g, b, a);
162 161
163 stops.append(Gradient::ColorStop(offset, r, g, b, a)); 162 stops.append(Gradient::ColorStop(offset, r, g, b, a));
164 } 163 }
165 164
166 return stops; 165 return stops;
167 } 166 }
168 167
169 } 168 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698