mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
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:
parent
d4163eae96
commit
a92f9c105a
4 changed files with 522 additions and 500 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue