mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Format script component
This commit is contained in:
parent
2ca7a13473
commit
c37a345dc9
357 changed files with 25485 additions and 18076 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue