SVN commit 573376 by wildfox: Respect winding rule for hit testing... M +7 -2 KCanvasPathQt.cpp --- branches/work/unity/WebKit/WebCore/kcanvas/device/qt/KCanvasPathQt.cpp #573375:573376 @@ -78,8 +78,13 @@ bool KCanvasPathQt::containsPoint(const FloatPoint &point, KCWindRule rule) { - // TODO: winding rule! - return m_path.contains(point); + Qt::FillRule savedRule = m_path.fillRule(); + m_path.setFillRule(rule == RULE_EVENODD ? Qt::OddEvenFill : Qt::WindingFill); + + bool contains = m_path.contains(point); + + m_path.setFillRule(savedRule); + return contains; } }