diff options
author | CYBAI <cyb.ai.815@gmail.com> | 2020-06-04 21:37:29 +0900 |
---|---|---|
committer | CYBAI <cyb.ai.815@gmail.com> | 2020-06-05 00:10:19 +0900 |
commit | c561a3eb0e72a4d20f23eef2d61549284e6dd237 (patch) | |
tree | a23f558252fec07fc91481a67423a52a8ae52f1e /components/script/dom/virtualmethods.rs | |
parent | ea491b41174edd03c3ee08fe29046c33b96b0406 (diff) | |
download | servo-c561a3eb0e72a4d20f23eef2d61549284e6dd237.tar.gz servo-c561a3eb0e72a4d20f23eef2d61549284e6dd237.zip |
Introduce ElementCSSInlineStyle for SVGElement
Diffstat (limited to 'components/script/dom/virtualmethods.rs')
-rw-r--r-- | components/script/dom/virtualmethods.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/virtualmethods.rs b/components/script/dom/virtualmethods.rs index f3b8b633232..9f175d8d621 100644 --- a/components/script/dom/virtualmethods.rs +++ b/components/script/dom/virtualmethods.rs @@ -52,6 +52,7 @@ use crate::dom::htmltextareaelement::HTMLTextAreaElement; use crate::dom::htmltitleelement::HTMLTitleElement; use crate::dom::htmlvideoelement::HTMLVideoElement; use crate::dom::node::{BindContext, ChildrenMutation, CloneChildrenFlag, Node, UnbindContext}; +use crate::dom::svgelement::SVGElement; use crate::dom::svgsvgelement::SVGSVGElement; use html5ever::LocalName; use style::attr::AttrValue; @@ -269,6 +270,9 @@ pub fn vtable_for(node: &Node) -> &dyn VirtualMethods { NodeTypeId::Element(ElementTypeId::SVGElement(SVGElementTypeId::SVGGraphicsElement( SVGGraphicsElementTypeId::SVGSVGElement, ))) => node.downcast::<SVGSVGElement>().unwrap() as &dyn VirtualMethods, + NodeTypeId::Element(ElementTypeId::SVGElement(SVGElementTypeId::SVGElement)) => { + node.downcast::<SVGElement>().unwrap() as &dyn VirtualMethods + }, NodeTypeId::Element(ElementTypeId::Element) => { node.downcast::<Element>().unwrap() as &dyn VirtualMethods }, |