servo: Merge #4566 - Fixes #4164 Make Constructor and new functions take GlobalRef by value (from mattnenterprise:globalref-by-value); r=Ms2ger
Source-Repo: https://github.com/servo/servo Source-Revision: 7800d98728bfa1375ad8b6a2dac7f2f35603b6d1
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user