Fix a layout method to use borrow_for_layout()

This commit is contained in:
Keegan McAllister 2014-10-23 16:02:58 -07:00
parent 96e180a22c
commit 0162214b1f

View file

@ -90,7 +90,7 @@ pub trait LayoutHTMLImageElementHelpers {
impl LayoutHTMLImageElementHelpers for JS<HTMLImageElement> {
unsafe fn image(&self) -> Option<Url> {
(*self.unsafe_get()).image.borrow().clone()
(*self.unsafe_get()).image.borrow_for_layout().clone()
}
}