Implements drawImage for html image as ImageSource

This commit is contained in:
Diego Marcos 2015-03-25 17:17:18 -07:00
parent 184d214e26
commit 88954e3e18
86 changed files with 1380 additions and 251 deletions

View file

@ -39,6 +39,16 @@ impl HTMLImageElementDerived for EventTarget {
}
}
pub trait HTMLImageElementHelpers {
fn get_url(&self) -> Option<Url>;
}
impl<'a> HTMLImageElementHelpers for JSRef<'a, HTMLImageElement> {
fn get_url(&self) -> Option<Url>{
self.image.borrow().clone()
}
}
trait PrivateHTMLImageElementHelpers {
fn update_image(self, value: Option<(DOMString, &Url)>);
}