Bug 82790 - Support Path primitives
Summary: Support Path primitives
Status: RESOLVED DUPLICATE of bug 97333
Alias: None
Product: WebKit
Classification: Unclassified
Component: Canvas (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dean Jackson
URL:
Keywords: InRadar
Depends on:
Blocks: 82792
  Show dependency treegraph
 
Reported: 2012-03-30 15:36 PDT by Dean Jackson
Modified: 2013-01-08 14:28 PST (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Jackson 2012-03-30 15:36:58 PDT
Canvas v5 API has Path primitives
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path
Comment 1 Radar WebKit Bug Importer 2012-03-30 15:37:34 PDT
<rdar://problem/11159162>
Comment 2 Dongseong Hwang 2012-06-29 23:20:23 PDT
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);
};
Comment 3 Dongseong Hwang 2012-06-29 23:24:31 PDT
(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);
> };
Comment 4 Dirk Schulze 2013-01-08 14:28:29 PST

*** This bug has been marked as a duplicate of bug 97333 ***