| 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 10 matching lines...) Expand all Loading... |
| 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
| 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 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 #if ENABLE(SVG) | 30 #if ENABLE(SVG) |
| 31 #include "RenderSVGRect.h" | 31 #include "core/rendering/svg/RenderSVGRect.h" |
| 32 | 32 |
| 33 #include "SVGNames.h" | 33 #include "SVGNames.h" |
| 34 #include "SVGRectElement.h" | 34 #include "SVGRectElement.h" |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 RenderSVGRect::RenderSVGRect(SVGRectElement* node) | 38 RenderSVGRect::RenderSVGRect(SVGRectElement* node) |
| 39 : RenderSVGShape(node) | 39 : RenderSVGShape(node) |
| 40 , m_usePathFallback(false) | 40 , m_usePathFallback(false) |
| 41 { | 41 { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const Wi
ndRule fillRule) const | 123 bool RenderSVGRect::shapeDependentFillContains(const FloatPoint& point, const Wi
ndRule fillRule) const |
| 124 { | 124 { |
| 125 if (m_usePathFallback) | 125 if (m_usePathFallback) |
| 126 return RenderSVGShape::shapeDependentFillContains(point, fillRule); | 126 return RenderSVGShape::shapeDependentFillContains(point, fillRule); |
| 127 return m_fillBoundingBox.contains(point.x(), point.y()); | 127 return m_fillBoundingBox.contains(point.x(), point.y()); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } | 130 } |
| 131 | 131 |
| 132 #endif // ENABLE(SVG) | 132 #endif // ENABLE(SVG) |
| OLD | NEW |