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

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

Issue 14487005: Absolutify paths to rendering/svg/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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) 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 #if ENABLE(SVG) 30 #if ENABLE(SVG)
31 #include "RenderSVGShape.h"
32 #include "SVGStyledTransformableElement.h" 31 #include "SVGStyledTransformableElement.h"
32 #include "core/rendering/svg/RenderSVGShape.h"
33 33
34 namespace WebCore { 34 namespace WebCore {
35 35
36 class RenderSVGEllipse FINAL : public RenderSVGShape { 36 class RenderSVGEllipse FINAL : public RenderSVGShape {
37 public: 37 public:
38 explicit RenderSVGEllipse(SVGStyledTransformableElement*); 38 explicit RenderSVGEllipse(SVGStyledTransformableElement*);
39 virtual ~RenderSVGEllipse(); 39 virtual ~RenderSVGEllipse();
40 40
41 private: 41 private:
42 virtual const char* renderName() const { return "RenderSVGEllipse"; } 42 virtual const char* renderName() const { return "RenderSVGEllipse"; }
43 43
44 virtual void updateShapeFromElement(); 44 virtual void updateShapeFromElement();
45 virtual bool isEmpty() const { return m_usePathFallback ? RenderSVGShape::is Empty() : m_fillBoundingBox.isEmpty(); }; 45 virtual bool isEmpty() const { return m_usePathFallback ? RenderSVGShape::is Empty() : m_fillBoundingBox.isEmpty(); };
46 virtual void fillShape(GraphicsContext*) const; 46 virtual void fillShape(GraphicsContext*) const;
47 virtual void strokeShape(GraphicsContext*) const; 47 virtual void strokeShape(GraphicsContext*) const;
48 virtual bool shapeDependentStrokeContains(const FloatPoint&); 48 virtual bool shapeDependentStrokeContains(const FloatPoint&);
49 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c onst; 49 virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) c onst;
50 void calculateRadiiAndCenter(); 50 void calculateRadiiAndCenter();
51 51
52 private: 52 private:
53 FloatPoint m_center; 53 FloatPoint m_center;
54 FloatSize m_radii; 54 FloatSize m_radii;
55 bool m_usePathFallback; 55 bool m_usePathFallback;
56 }; 56 };
57 57
58 } 58 }
59 59
60 #endif // ENABLE(SVG) 60 #endif // ENABLE(SVG)
61 #endif 61 #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