mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce ElementCSSInlineStyle for SVGElement
This commit is contained in:
parent
ea491b4117
commit
c561a3eb0e
4 changed files with 49 additions and 2 deletions
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue