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

Side by Side Diff: Source/core/rendering/svg/RenderSVGRect.cpp

Issue 332773002: Clean up SVGNames usage in core/rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase against ToT Created 6 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 University of Szeged 2 * Copyright (C) 2011 University of Szeged
3 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> 3 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org>
4 * All rights reserved. 4 * All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 12 matching lines...) Expand all
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "config.h" 28 #include "config.h"
29 29
30 #include "core/rendering/svg/RenderSVGRect.h" 30 #include "core/rendering/svg/RenderSVGRect.h"
31 #include "platform/graphics/GraphicsContext.h" 31 #include "platform/graphics/GraphicsContext.h"
32 32
33 #include "SVGNames.h"
34
35 namespace WebCore { 33 namespace WebCore {
36 34
37 RenderSVGRect::RenderSVGRect(SVGRectElement* node) 35 RenderSVGRect::RenderSVGRect(SVGRectElement* node)
38 : RenderSVGShape(node) 36 : RenderSVGShape(node)
39 , m_usePathFallback(false) 37 , m_usePathFallback(false)
40 { 38 {
41 } 39 }
42 40
43 RenderSVGRect::~RenderSVGRect() 41 RenderSVGRect::~RenderSVGRect()
44 { 42 {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 } 123 }
126 124
127 bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const Wi ndRule fillRule) const 125 bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const Wi ndRule fillRule) const
128 { 126 {
129 if (m_usePathFallback) 127 if (m_usePathFallback)
130 return RenderSVGShape::shapeDependentFillContains(point, fillRule); 128 return RenderSVGShape::shapeDependentFillContains(point, fillRule);
131 return m_fillBoundingBox.contains(point.x(), point.y()); 129 return m_fillBoundingBox.contains(point.x(), point.y());
132 } 130 }
133 131
134 } 132 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGModelObject.cpp ('k') | Source/core/rendering/svg/RenderSVGTSpan.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698