[dev-servo] Question about webidl files and old versions of servo

2015-11-28 Thread Tomás Barry
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.

Re: [dev-servo] Question about webidl files and old versions of servo

2015-11-28 Thread Manish Goregaokar
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