mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Add svg mods and move SVG-related types into them.
This commit is contained in:
parent
4d71eed898
commit
0071c7663f
8 changed files with 154 additions and 125 deletions
|
@ -579,7 +579,7 @@ def set_gecko_property(ffi_name, expr):
|
|||
<%def name="impl_svg_paint(ident, gecko_ffi_name, need_clone=False)">
|
||||
#[allow(non_snake_case)]
|
||||
pub fn set_${ident}(&mut self, mut v: longhands::${ident}::computed_value::T) {
|
||||
use values::generics::SVGPaintKind;
|
||||
use values::generics::svg::SVGPaintKind;
|
||||
use self::structs::nsStyleSVGPaintType;
|
||||
use self::structs::nsStyleSVGFallbackType;
|
||||
|
||||
|
@ -632,7 +632,7 @@ def set_gecko_property(ffi_name, expr):
|
|||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn clone_${ident}(&self) -> longhands::${ident}::computed_value::T {
|
||||
use values::generics::{SVGPaint, SVGPaintKind};
|
||||
use values::generics::svg::{SVGPaint, SVGPaintKind};
|
||||
use values::specified::url::SpecifiedUrl;
|
||||
use self::structs::nsStyleSVGPaintType;
|
||||
use self::structs::nsStyleSVGFallbackType;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue