diff --git a/components/script/dom/htmltableelement.rs b/components/script/dom/htmltableelement.rs
index 5bdb7f75281..4473746367a 100644
--- a/components/script/dom/htmltableelement.rs
+++ b/components/script/dom/htmltableelement.rs
@@ -406,15 +406,15 @@ impl HTMLTableElementMethods for HTMLTableElement {
}
pub trait HTMLTableElementLayoutHelpers {
- fn get_background_color(&self) -> Option;
- fn get_border(&self) -> Option;
- fn get_cellspacing(&self) -> Option;
- fn get_width(&self) -> LengthOrPercentageOrAuto;
+ fn get_background_color(self) -> Option;
+ fn get_border(self) -> Option;
+ fn get_cellspacing(self) -> Option;
+ fn get_width(self) -> LengthOrPercentageOrAuto;
}
impl HTMLTableElementLayoutHelpers for LayoutDom<'_, HTMLTableElement> {
#[allow(unsafe_code)]
- fn get_background_color(&self) -> Option {
+ fn get_background_color(self) -> Option {
unsafe {
(*self.upcast::().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("bgcolor"))
@@ -424,17 +424,17 @@ impl HTMLTableElementLayoutHelpers for LayoutDom<'_, HTMLTableElement> {
}
#[allow(unsafe_code)]
- fn get_border(&self) -> Option {
+ fn get_border(self) -> Option {
unsafe { (*self.unsafe_get()).border.get() }
}
#[allow(unsafe_code)]
- fn get_cellspacing(&self) -> Option {
+ fn get_cellspacing(self) -> Option {
unsafe { (*self.unsafe_get()).cellspacing.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"))