Hi Guys,
We're creating a new dom interface for Image Requests. We're looking to add a
new webidl file for imagerequest.rs (A file we just created) and we've been
following these steps:
http://doc.servo.org/script/dom/index.html#adding-a-new-dom-interface
And have implemented them all.
You should store imageData inside a JS pointer, like so (assuming ImageData
is also a #[dom_struct])
#[dom_struct]
pub struct ImageRequest {
reflector_: Reflector,
state : ImageState,
currentUrl : URL,
imageData : JS,
}
See XMLHttpRequest::Upload
2 matches
Mail list logo