Status: Untriaged Owner: ---- CC: bre...@chromium.org, r...@android.com Labels: Type-Bug Pri-2 OS-All Area-WebKit
New issue 7465 by s...@chromium.org: Skia's point in path checking differs from CG at edges http://code.google.com/p/chromium/issues/detail?id=7465 Canvas exposes the method isPointInPath. According to the spec, "Points on the path itself are considered to be inside the path." So that if you create a rect of size 20x20 at 0x0, then the point 0,20 should be in the path. We currently return false, because Skia considers the point 0,20 outside the bounds of the rect. Here's a trivial test case: ctx = document.getElementById("canvas").getContext("2d"); ctx.save(); ctx.beginPath(); ctx.rect(0, 0, 20, 20); ctx.isPointInPath(0, 20); ctx.restore(); See LayoutTests/fast/canvas/pointInPath.html for examples similar to this. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---