Introduce ElementCSSInlineStyle for SVGElement

This commit is contained in:
CYBAI 2020-06-04 21:37:29 +09:00
parent ea491b4117
commit c561a3eb0e
4 changed files with 49 additions and 2 deletions

View file

@ -80,6 +80,7 @@ use crate::dom::htmltrackelement::HTMLTrackElement;
use crate::dom::htmlulistelement::HTMLUListElement;
use crate::dom::htmlunknownelement::HTMLUnknownElement;
use crate::dom::htmlvideoelement::HTMLVideoElement;
use crate::dom::svgelement::SVGElement;
use crate::dom::svgsvgelement::SVGSVGElement;
use crate::realms::{enter_realm, InRealm};
use crate::script_thread::ScriptThread;
@ -110,7 +111,7 @@ fn create_svg_element(
match name.local {
local_name!("svg") => make!(SVGSVGElement),
_ => Element::new(name.local, name.ns, prefix, document),
_ => make!(SVGElement),
}
}