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

[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. Ho