mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fixes #4164 Make Constructor and new functions take GlobalRef by value
This commit is contained in:
parent
cf616b90a2
commit
85df7f0d6f
25 changed files with 61 additions and 61 deletions
|
@ -41,7 +41,7 @@ impl DocumentFragment {
|
|||
document, DocumentFragmentBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(global: &GlobalRef) -> Fallible<Temporary<DocumentFragment>> {
|
||||
pub fn Constructor(global: GlobalRef) -> Fallible<Temporary<DocumentFragment>> {
|
||||
let document = global.as_window().Document();
|
||||
let document = document.root();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue