mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add trait DomObjectWrap to provide WRAP function
This commit is contained in:
parent
ca29399bab
commit
3ea6d87bcc
353 changed files with 327 additions and 1236 deletions
|
@ -6,7 +6,6 @@ use crate::document_loader::DocumentLoader;
|
|||
use crate::dom::bindings::cell::DomRefCell;
|
||||
use crate::dom::bindings::codegen::Bindings::BlobBinding::BlobBinding::BlobMethods;
|
||||
use crate::dom::bindings::codegen::Bindings::WindowBinding::WindowMethods;
|
||||
use crate::dom::bindings::codegen::Bindings::XMLHttpRequestBinding;
|
||||
use crate::dom::bindings::codegen::Bindings::XMLHttpRequestBinding::BodyInit;
|
||||
use crate::dom::bindings::codegen::Bindings::XMLHttpRequestBinding::XMLHttpRequestMethods;
|
||||
use crate::dom::bindings::codegen::Bindings::XMLHttpRequestBinding::XMLHttpRequestResponseType;
|
||||
|
@ -216,11 +215,7 @@ impl XMLHttpRequest {
|
|||
}
|
||||
}
|
||||
pub fn new(global: &GlobalScope) -> DomRoot<XMLHttpRequest> {
|
||||
reflect_dom_object(
|
||||
Box::new(XMLHttpRequest::new_inherited(global)),
|
||||
global,
|
||||
XMLHttpRequestBinding::Wrap,
|
||||
)
|
||||
reflect_dom_object(Box::new(XMLHttpRequest::new_inherited(global)), global)
|
||||
}
|
||||
|
||||
// https://xhr.spec.whatwg.org/#constructors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue