style: Move SVGPathData and its parser into svg_path.rs.

SVGPathData will be used by clip-path and offset-path (and/or more on the
properties which support <basic-shape>). Therefore, let's move
SVGPathData out of motion.rs.

Differential Revision: https://phabricator.services.mozilla.com/D3631
This commit is contained in:
Boris Chiou 2018-08-16 11:19:59 -07:00 committed by Emilio Cobos Álvarez
parent d4163eae96
commit a92f9c105a
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 522 additions and 500 deletions

View file

@ -743,7 +743,7 @@ pub mod basic_shape {
impl<'a> From<&'a StyleShapeSource> for OffsetPath {
fn from(other: &'a StyleShapeSource) -> Self {
use gecko_bindings::structs::StylePathCommand;
use values::specified::motion::{SVGPathData, PathCommand};
use values::specified::svg_path::{SVGPathData, PathCommand};
match other.mType {
StyleShapeSourceType::Path => {
let gecko_path = unsafe { &*other.__bindgen_anon_1.mSVGPath.as_ref().mPtr };