mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Give a lifetime parameter to LayoutDom
This commit is contained in:
parent
60ca98b753
commit
dba6a635e5
26 changed files with 145 additions and 235 deletions
|
@ -1382,7 +1382,7 @@ pub trait LayoutHTMLImageElementHelpers {
|
|||
fn get_height(&self) -> LengthOrPercentageOrAuto;
|
||||
}
|
||||
|
||||
impl LayoutHTMLImageElementHelpers for LayoutDom<HTMLImageElement> {
|
||||
impl LayoutHTMLImageElementHelpers for LayoutDom<'_, HTMLImageElement> {
|
||||
#[allow(unsafe_code)]
|
||||
unsafe fn image(&self) -> Option<Arc<Image>> {
|
||||
(*self.unsafe_get())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue