Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix a layout method to use borrow_for_layout()
  • Loading branch information
kmcallister committed Oct 24, 2014
1 parent 96e180a commit 0162214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/script/dom/htmlimageelement.rs
Expand Up @@ -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()
}
}

Expand Down

0 comments on commit 0162214

Please sign in to comment.