Closed Bug 985257 Opened 11 years ago Closed 11 years ago

Add Path2D constructor that takes a SVG path string

Categories

(Core :: Graphics: Canvas2D, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla31

People

(Reporter: cabanier, Assigned: cabanier)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 file, 3 obsolete files)

      No description provided.
spec: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-path-withdata

Also implemented in Blink and WebKit
Assignee: nobody → cabanier
Depends on: 830734
Comment on attachment 8393287 [details] [diff] [review]
Bug 985257 - add implementation for Path2D constructor that takes an SVG path string

no tests yet.
Waiting for pointInPath patch to land first
Attachment #8393287 - Flags: review?(roc)
The code you've put in nsSVGUtils would be better located in SVGContentUtils. Could you move it there please?
(In reply to Robert Longson from comment #5)
> The code you've put in nsSVGUtils would be better located in
> SVGContentUtils. Could you move it there please?

SVGContentUtils.h is not reachable from CanvasRenderingContext2D.cpp
It seems like it's only meant to be used inside the SVG tree.
You should change the moz.build file(s) to make it reachable if you need to.
Attachment #8393287 - Attachment is obsolete: true
Attachment #8393794 - Flags: review?(longsonr)
(In reply to Robert Longson from comment #7)
> You should change the moz.build file(s) to make it reachable if you need to.

Can you review?
Keywords: dev-doc-needed
Attachment #8393794 - Flags: review?(longsonr) → review?(roc)
Blocks: 985801
Keywords: checkin-needed
Backed out for bustage (which you probably would have seen had you not pushed to Try on top of other bustage).
https://hg.mozilla.org/integration/mozilla-inbound/rev/d0cf18ff619d

https://tbpl.mozilla.org/php/getParsedLog.php?id=36500526&tree=Mozilla-Inbound
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/8ee23d53dc27
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: