Changeset 58804 in webkit
- Timestamp:
- May 5, 2010 12:31:40 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r58801 r58804 1 2010-05-05 Dirk Schulze <krit@webkit.org> 2 3 Reviewed by Nikolas Zimmermann. 4 5 SVG hit testing is *way* too slow 6 https://bugs.webkit.org/show_bug.cgi?id=19312 7 8 Use the cached stroke and fill boundaries in RenderPath as a heuristik to 9 speed up SVG's hit testing. 10 11 No new tests added. 12 13 * rendering/RenderPath.cpp: 14 (WebCore::RenderPath::fillContains): 15 (WebCore::RenderPath::strokeContains): 16 1 17 2010-05-04 Dumitru Daniliuc <dumi@chromium.org> 2 18 -
trunk/WebCore/rendering/RenderPath.cpp
r58570 r58804 74 74 bool RenderPath::fillContains(const FloatPoint& point, bool requiresFill) const 75 75 { 76 if ( m_path.isEmpty())76 if (!m_fillBoundingBox.contains(point)) 77 77 return false; 78 78 … … 85 85 bool RenderPath::strokeContains(const FloatPoint& point, bool requiresStroke) const 86 86 { 87 if ( m_path.isEmpty())87 if (!m_strokeAndMarkerBoundingBox.contains(point)) 88 88 return false; 89 89
Note: See TracChangeset
for help on using the changeset viewer.