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

Side by Side Diff: Source/core/rendering/svg/RenderSVGResourceRadialGradient.h

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 years, 8 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) 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 11 matching lines...) Expand all
22 #define RenderSVGResourceRadialGradient_h 22 #define RenderSVGResourceRadialGradient_h
23 23
24 #if ENABLE(SVG) 24 #if ENABLE(SVG)
25 #include "RadialGradientAttributes.h" 25 #include "RadialGradientAttributes.h"
26 #include "RenderSVGResourceGradient.h" 26 #include "RenderSVGResourceGradient.h"
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 class SVGRadialGradientElement; 30 class SVGRadialGradientElement;
31 31
32 class RenderSVGResourceRadialGradient : public RenderSVGResourceGradient { 32 class RenderSVGResourceRadialGradient FINAL : public RenderSVGResourceGradient {
33 public: 33 public:
34 RenderSVGResourceRadialGradient(SVGRadialGradientElement*); 34 RenderSVGResourceRadialGradient(SVGRadialGradientElement*);
35 virtual ~RenderSVGResourceRadialGradient(); 35 virtual ~RenderSVGResourceRadialGradient();
36 36
37 virtual const char* renderName() const { return "RenderSVGResourceRadialGrad ient"; } 37 virtual const char* renderName() const { return "RenderSVGResourceRadialGrad ient"; }
38 38
39 virtual RenderSVGResourceType resourceType() const { return s_resourceType; } 39 virtual RenderSVGResourceType resourceType() const { return s_resourceType; }
40 static RenderSVGResourceType s_resourceType; 40 static RenderSVGResourceType s_resourceType;
41 41
42 virtual SVGUnitTypes::SVGUnitType gradientUnits() const { return m_attribute s.gradientUnits(); } 42 virtual SVGUnitTypes::SVGUnitType gradientUnits() const { return m_attribute s.gradientUnits(); }
43 virtual void calculateGradientTransform(AffineTransform& transform) { transf orm = m_attributes.gradientTransform(); } 43 virtual void calculateGradientTransform(AffineTransform& transform) { transf orm = m_attributes.gradientTransform(); }
44 virtual bool collectGradientAttributes(SVGGradientElement*); 44 virtual bool collectGradientAttributes(SVGGradientElement*);
45 virtual void buildGradient(GradientData*) const; 45 virtual void buildGradient(GradientData*) const;
46 46
47 FloatPoint centerPoint(const RadialGradientAttributes&) const; 47 FloatPoint centerPoint(const RadialGradientAttributes&) const;
48 FloatPoint focalPoint(const RadialGradientAttributes&) const; 48 FloatPoint focalPoint(const RadialGradientAttributes&) const;
49 float radius(const RadialGradientAttributes&) const; 49 float radius(const RadialGradientAttributes&) const;
50 float focalRadius(const RadialGradientAttributes&) const; 50 float focalRadius(const RadialGradientAttributes&) const;
51 51
52 private: 52 private:
53 RadialGradientAttributes m_attributes; 53 RadialGradientAttributes m_attributes;
54 }; 54 };
55 55
56 } 56 }
57 57
58 #endif 58 #endif
59 #endif 59 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourcePattern.h ('k') | Source/core/rendering/svg/RenderSVGRoot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698