mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix a layout method to use borrow_for_layout()
This commit is contained in:
parent
96e180a22c
commit
0162214b1f
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue