diff options
Diffstat (limited to 'components/script/dom/svggraphicselement.rs')
-rw-r--r-- | components/script/dom/svggraphicselement.rs | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/components/script/dom/svggraphicselement.rs b/components/script/dom/svggraphicselement.rs index 4e4f6fadf65..71b272b8737 100644 --- a/components/script/dom/svggraphicselement.rs +++ b/components/script/dom/svggraphicselement.rs @@ -16,17 +16,27 @@ pub struct SVGGraphicsElement { } impl SVGGraphicsElement { - pub fn new_inherited(tag_name: LocalName, prefix: Option<Prefix>, - document: &Document) -> SVGGraphicsElement { - SVGGraphicsElement::new_inherited_with_state(ElementState::empty(), tag_name, prefix, document) + pub fn new_inherited( + tag_name: LocalName, + prefix: Option<Prefix>, + document: &Document, + ) -> SVGGraphicsElement { + SVGGraphicsElement::new_inherited_with_state( + ElementState::empty(), + tag_name, + prefix, + document, + ) } - pub fn new_inherited_with_state(state: ElementState, tag_name: LocalName, - prefix: Option<Prefix>, document: &Document) - -> SVGGraphicsElement { + pub fn new_inherited_with_state( + state: ElementState, + tag_name: LocalName, + prefix: Option<Prefix>, + document: &Document, + ) -> SVGGraphicsElement { SVGGraphicsElement { - svgelement: - SVGElement::new_inherited_with_state(state, tag_name, prefix, document), + svgelement: SVGElement::new_inherited_with_state(state, tag_name, prefix, document), } } } |