Summary: | Implement isPointInPath and isPointInStroke with Path2D argument | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Dirk Schulze <krit> | ||||||
Component: | Canvas | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | cdumez, commit-queue, dino, esprehn+autocc, gyuyoung.kim, kondapallykalyan, oliver, simon.fraser | ||||||
Priority: | P2 | Keywords: | WebExposed | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
URL: | http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path | ||||||||
Attachments: |
|
Description
Dirk Schulze
2014-03-19 14:08:04 PDT
Created attachment 227215 [details]
Patch
Comment on attachment 227215 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=227215&action=review > LayoutTests/fast/canvas/canvas-path-isPointInPath-expected.txt:12 > +PASS ctx.isPointInPath(null, 50, 50) threw exception TypeError: Argument 3 ('winding') to CanvasRenderingContext2D.isPointInPath must be one of: "nonzero", "evenodd". Discussion on irc suggests this error message is wrong. > LayoutTests/fast/canvas/script-tests/canvas-path-isPointInPath.js:34 > +shouldThrow("ctx.isPointInPath({}, 50, 50, 'nonzero')"); > +shouldThrow("ctx.isPointInPath({}, 50, 50, 'evenodd')"); I would like to see some tests where you are passing in some extremely unexpected data, such as Number.MAX_VALUE or strings, etc. Created attachment 227222 [details]
Patch
Comment on attachment 227222 [details] Patch Clearing flags on attachment: 227222 Committed r165927: <http://trac.webkit.org/changeset/165927> All reviewed patches have been landed. Closing bug. |