Skip to content
Permalink
Browse files

Fix a layout method to use borrow_for_layout()

  • Loading branch information
kmcallister committed Oct 24, 2014
1 parent 96e180a commit 0162214b1fce3787bb08118790fc4d59d8528306
Showing with 1 addition and 1 deletion.
  1. +1 −1 components/script/dom/htmlimageelement.rs
@@ -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()
}
}

0 comments on commit 0162214

Please sign in to comment.
You can’t perform that action at this time.