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

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

Issue 15427003: Remove 100 superfluous includes from core/rendering/svg (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add back RenderView.h include to RenderSVGResourceContainer.cpp, broke rel compiles Created 7 years, 7 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) 2012 Google, Inc. 2 * Copyright (C) 2012 Google, Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 10 matching lines...) Expand all
21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 21 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef RenderSVGEllipse_h 27 #ifndef RenderSVGEllipse_h
28 #define RenderSVGEllipse_h 28 #define RenderSVGEllipse_h
29 29
30 #include "core/rendering/svg/RenderSVGShape.h" 30 #include "core/rendering/svg/RenderSVGShape.h"
31 #include "core/svg/SVGStyledTransformableElement.h"
32 31
33 namespace WebCore { 32 namespace WebCore {
34 33
35 class RenderSVGEllipse FINAL : public RenderSVGShape { 34 class RenderSVGEllipse FINAL : public RenderSVGShape {
36 public: 35 public:
37 explicit RenderSVGEllipse(SVGStyledTransformableElement*); 36 explicit RenderSVGEllipse(SVGStyledTransformableElement*);
38 virtual ~RenderSVGEllipse(); 37 virtual ~RenderSVGEllipse();
39 38
40 private: 39 private:
41 virtual const char* renderName() const { return "RenderSVGEllipse"; } 40 virtual const char* renderName() const { return "RenderSVGEllipse"; }
42 41
43 virtual void updateShapeFromElement(); 42 virtual void updateShapeFromElement();
44 virtual bool isEmpty() const { return m_usePathFallback ? RenderSVGShape::is Empty() : m_fillBoundingBox.isEmpty(); }; 43 virtual bool isEmpty() const { return m_usePathFallback ? RenderSVGShape::is Empty() : m_fillBoundingBox.isEmpty(); };
45 virtual void fillShape(GraphicsContext*) const; 44 virtual void fillShape(GraphicsContext*) const;
46 virtual void strokeShape(GraphicsContext*) const; 45 virtual void strokeShape(GraphicsContext*) const;
47 virtual bool shapeDependentStrokeContains(const FloatPoint&); 46 virtual bool shapeDependentStrokeContains(const FloatPoint&);
48 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c onst; 47 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c onst;
49 void calculateRadiiAndCenter(); 48 void calculateRadiiAndCenter();
50 49
51 private: 50 private:
52 FloatPoint m_center; 51 FloatPoint m_center;
53 FloatSize m_radii; 52 FloatSize m_radii;
54 bool m_usePathFallback; 53 bool m_usePathFallback;
55 }; 54 };
56 55
57 } 56 }
58 57
59 #endif 58 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGContainer.cpp ('k') | Source/core/rendering/svg/RenderSVGEllipse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698