aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/create.rs
diff options
context:
space:
mode:
authorCYBAI <cyb.ai.815@gmail.com>2020-06-04 21:37:29 +0900
committerCYBAI <cyb.ai.815@gmail.com>2020-06-05 00:10:19 +0900
commitc561a3eb0e72a4d20f23eef2d61549284e6dd237 (patch)
treea23f558252fec07fc91481a67423a52a8ae52f1e /components/script/dom/create.rs
parentea491b41174edd03c3ee08fe29046c33b96b0406 (diff)
downloadservo-c561a3eb0e72a4d20f23eef2d61549284e6dd237.tar.gz
servo-c561a3eb0e72a4d20f23eef2d61549284e6dd237.zip
Introduce ElementCSSInlineStyle for SVGElement
Diffstat (limited to 'components/script/dom/create.rs')
-rw-r--r--components/script/dom/create.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/create.rs b/components/script/dom/create.rs
index 62484c6f861..37aaf07286f 100644
--- a/components/script/dom/create.rs
+++ b/components/script/dom/create.rs
@@ -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),
}
}