Bug 82790
Summary: | Support Path primitives | ||
---|---|---|---|
Product: | WebKit | Reporter: | Dean Jackson <dino> |
Component: | Canvas | Assignee: | Dean Jackson <dino> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | dongseong.hwang, eoconnor, guanqun.lu, junov, kangax, krit, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 82792 |
Dean Jackson
Canvas v5 API has Path primitives
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/11159162>
Dongseong Hwang
Canvas v5 API has Path interface, and it is conflict with platform/graphics/Path.h
One of both needs to change the name.
interface Path {
void addPath(Path path, SVGMatrix? transformation);
void addPathByStrokingPath(Path path, CanvasDrawingStyles styles, SVGMatrix? transformation);
void addText(DOMString text, CanvasDrawingStyles styles, SVGMatrix? transformation, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
void addPathByStrokingText(DOMString text, CanvasDrawingStyles styles, SVGMatrix? transformation, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
void addText(DOMString text, CanvasDrawingStyles styles, SVGMatrix? transformation, Path path, optional unrestricted double maxWidth);
void addPathByStrokingText(DOMString text, CanvasDrawingStyles styles, SVGMatrix? transformation, Path path, optional unrestricted double maxWidth);
};
Dongseong Hwang
(In reply to comment #2)
> Canvas v5 API has Path interface, and it is conflict with platform/graphics/Path.h
>
> One of both needs to change the name.
Sorry.
I understand now that platform/graphics/Path.h can implement CanvasPathMethods, and there is no problem.
>
> interface Path {
> void addPath(Path path, SVGMatrix? transformation);
> void addPathByStrokingPath(Path path, CanvasDrawingStyles styles, SVGMatrix? transformation);
> void addText(DOMString text, CanvasDrawingStyles styles, SVGMatrix? transformation, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
> void addPathByStrokingText(DOMString text, CanvasDrawingStyles styles, SVGMatrix? transformation, unrestricted double x, unrestricted double y, optional unrestricted double maxWidth);
> void addText(DOMString text, CanvasDrawingStyles styles, SVGMatrix? transformation, Path path, optional unrestricted double maxWidth);
> void addPathByStrokingText(DOMString text, CanvasDrawingStyles styles, SVGMatrix? transformation, Path path, optional unrestricted double maxWidth);
> };
Dirk Schulze
*** This bug has been marked as a duplicate of bug 97333 ***