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

2015-11-28 Thread Josh Matthews
Hi Tomás! Thanks for asking these questions; I'm unfortunately going to throw a curve ball by stating that we shouldn't actually be creating new WebIDL interfaces for this project. Such interfaces are defined in web standards (e.g. the block under "DOM interface" at https://html.spec.whatwg.org

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