mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Clean up the cast calls
This commit is contained in:
parent
13ea3ac413
commit
68014af78e
66 changed files with 412 additions and 718 deletions
|
@ -89,11 +89,11 @@ pub fn create_element(name: QualName, prefix: Option<Atom>,
|
|||
macro_rules! make(
|
||||
($ctor:ident) => ({
|
||||
let obj = $ctor::new((*name.local).to_owned(), prefix, document);
|
||||
Root::upcast::<Element>(obj)
|
||||
Root::upcast(obj)
|
||||
});
|
||||
($ctor:ident, $($arg:expr),+) => ({
|
||||
let obj = $ctor::new((*name.local).to_owned(), prefix, document, $($arg),+);
|
||||
Root::upcast::<Element>(obj)
|
||||
Root::upcast(obj)
|
||||
})
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue