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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderPath.cpp

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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) 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
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
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)
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderObject.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderSVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698