| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 2004, 2005, 2008 Rob Buis <buis@kde.org> | 3 2004, 2005, 2008 Rob Buis <buis@kde.org> |
| 4 2005, 2007 Eric Seidel <eric@webkit.org> | 4 2005, 2007 Eric Seidel <eric@webkit.org> |
| 5 | 5 |
| 6 This file is part of the KDE project | 6 This file is part of the KDE project |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 { | 74 { |
| 75 return m_localTransform; | 75 return m_localTransform; |
| 76 } | 76 } |
| 77 | 77 |
| 78 FloatPoint RenderPath::mapAbsolutePointToLocal(const FloatPoint& point) const | 78 FloatPoint RenderPath::mapAbsolutePointToLocal(const FloatPoint& point) const |
| 79 { | 79 { |
| 80 // FIXME: does it make sense to map incoming points with the inverse of the | 80 // FIXME: does it make sense to map incoming points with the inverse of the |
| 81 // absolute transform? | 81 // absolute transform? |
| 82 double localX; | 82 double localX; |
| 83 double localY; | 83 double localY; |
| 84 absoluteTransform().inverse().map(point.x(), point.y(), &localX, &localY); | 84 absoluteTransform().inverse().map(point.x(), point.y(), localX, localY); |
| 85 return FloatPoint::narrowPrecision(localX, localY); | 85 return FloatPoint::narrowPrecision(localX, localY); |
| 86 } | 86 } |
| 87 | 87 |
| 88 bool RenderPath::fillContains(const FloatPoint& point, bool requiresFill) const | 88 bool RenderPath::fillContains(const FloatPoint& point, bool requiresFill) const |
| 89 { | 89 { |
| 90 if (m_path.isEmpty()) | 90 if (m_path.isEmpty()) |
| 91 return false; | 91 return false; |
| 92 | 92 |
| 93 if (requiresFill && !SVGPaintServer::fillPaintServer(style(), this)) | 93 if (requiresFill && !SVGPaintServer::fillPaintServer(style(), this)) |
| 94 return false; | 94 return false; |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 { | 474 { |
| 475 // FIXME: handle non-root repaintContainer | 475 // FIXME: handle non-root repaintContainer |
| 476 IntRect result = m_absoluteBounds; | 476 IntRect result = m_absoluteBounds; |
| 477 adjustRectForOutlineAndShadow(result); | 477 adjustRectForOutlineAndShadow(result); |
| 478 return result; | 478 return result; |
| 479 } | 479 } |
| 480 | 480 |
| 481 } | 481 } |
| 482 | 482 |
| 483 #endif // ENABLE(SVG) | 483 #endif // ENABLE(SVG) |
| OLD | NEW |