OLD | NEW |
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 Loading... |
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 | 31 |
32 #include "SVGNames.h" | 32 #include "SVGNames.h" |
33 #include "core/svg/SVGRectElement.h" | |
34 | 33 |
35 namespace WebCore { | 34 namespace WebCore { |
36 | 35 |
37 RenderSVGRect::RenderSVGRect(SVGRectElement* node) | 36 RenderSVGRect::RenderSVGRect(SVGRectElement* node) |
38 : RenderSVGShape(node) | 37 : RenderSVGShape(node) |
39 , m_usePathFallback(false) | 38 , m_usePathFallback(false) |
40 { | 39 { |
41 } | 40 } |
42 | 41 |
43 RenderSVGRect::~RenderSVGRect() | 42 RenderSVGRect::~RenderSVGRect() |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 119 } |
121 | 120 |
122 bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const Wi
ndRule fillRule) const | 121 bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const Wi
ndRule fillRule) const |
123 { | 122 { |
124 if (m_usePathFallback) | 123 if (m_usePathFallback) |
125 return RenderSVGShape::shapeDependentFillContains(point, fillRule); | 124 return RenderSVGShape::shapeDependentFillContains(point, fillRule); |
126 return m_fillBoundingBox.contains(point.x(), point.y()); | 125 return m_fillBoundingBox.contains(point.x(), point.y()); |
127 } | 126 } |
128 | 127 |
129 } | 128 } |
OLD | NEW |