diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs
index 16c5c1433b6..7b8c89bebf9 100644
--- a/components/script/dom/htmliframeelement.rs
+++ b/components/script/dom/htmliframeelement.rs
@@ -480,27 +480,27 @@ impl HTMLIFrameElement {
}
pub trait HTMLIFrameElementLayoutMethods {
- fn pipeline_id(&self) -> Option;
- fn browsing_context_id(&self) -> Option;
- fn get_width(&self) -> LengthOrPercentageOrAuto;
- fn get_height(&self) -> LengthOrPercentageOrAuto;
+ fn pipeline_id(self) -> Option;
+ fn browsing_context_id(self) -> Option;
+ fn get_width(self) -> LengthOrPercentageOrAuto;
+ fn get_height(self) -> LengthOrPercentageOrAuto;
}
impl HTMLIFrameElementLayoutMethods for LayoutDom<'_, HTMLIFrameElement> {
#[inline]
#[allow(unsafe_code)]
- fn pipeline_id(&self) -> Option {
+ fn pipeline_id(self) -> Option {
unsafe { (*self.unsafe_get()).pipeline_id.get() }
}
#[inline]
#[allow(unsafe_code)]
- fn browsing_context_id(&self) -> Option {
+ fn browsing_context_id(self) -> Option {
unsafe { (*self.unsafe_get()).browsing_context_id.get() }
}
#[allow(unsafe_code)]
- fn get_width(&self) -> LengthOrPercentageOrAuto {
+ fn get_width(self) -> LengthOrPercentageOrAuto {
unsafe {
(*self.upcast::().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("width"))
@@ -511,7 +511,7 @@ impl HTMLIFrameElementLayoutMethods for LayoutDom<'_, HTMLIFrameElement> {
}
#[allow(unsafe_code)]
- fn get_height(&self) -> LengthOrPercentageOrAuto {
+ fn get_height(self) -> LengthOrPercentageOrAuto {
unsafe {
(*self.upcast::().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("height"))