Bug 1714238 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

We should use the similar data structure for both [`SVGPathData::mData`](https://searchfox.org/mozilla-central/rev/74f3c420ee54001059e1850bef3be876749ff873/dom/svg/SVGPathData.h#226) and [`nsStyleSVGReset::mD`](https://searchfox.org/mozilla-central/rev/74f3c420ee54001059e1850bef3be876749ff873/servo/components/style/values/specified/svg_path.rs#35-39) (which is added by Bug 1340422). For now we still need a conversion from `SVGPathData::mData` to `nsStyleSVGReset::mD` when handling SVG d attribute on path element. If we share the same data structue (e.g. use StylePathComand everywhere), we can avoid unwanted conversion, for optimization.

Note: `nsStyleSVGReset::mD` uses the same data structure with `offset-path` in CSS motion path.
We should use the similar data structure for both [`SVGPathData::mData`](https://searchfox.org/mozilla-central/rev/74f3c420ee54001059e1850bef3be876749ff873/dom/svg/SVGPathData.h#226) and [`nsStyleSVGReset::mD`](https://searchfox.org/mozilla-central/rev/74f3c420ee54001059e1850bef3be876749ff873/servo/components/style/values/specified/svg_path.rs#35-39) (which is added by Bug 1340422). For now we still need a conversion from `SVGPathData::mData` to `nsStyleSVGReset::mD` when handling SVG d attribute on path element. If we share the same data structue (e.g. use StylePathComand everywhere), we can avoid unwanted conversion, for optimization.

Note: `nsStyleSVGReset::mD` uses the same data structure with `offset-path` path() function.

Back to Bug 1714238 Comment 0