diff --git a/components/script/dom/htmltablesectionelement.rs b/components/script/dom/htmltablesectionelement.rs
index c680da2ad23..89e399c70c9 100644
--- a/components/script/dom/htmltablesectionelement.rs
+++ b/components/script/dom/htmltablesectionelement.rs
@@ -84,12 +84,12 @@ impl HTMLTableSectionElementMethods for HTMLTableSectionElement {
}
pub trait HTMLTableSectionElementLayoutHelpers {
- fn get_background_color(&self) -> Option;
+ fn get_background_color(self) -> Option;
}
#[allow(unsafe_code)]
impl HTMLTableSectionElementLayoutHelpers for LayoutDom<'_, HTMLTableSectionElement> {
- 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"))