aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2020-03-29 17:23:31 +0200
committerAnthony Ramine <nox@nox.paris>2020-03-29 17:23:31 +0200
commit5d3274c181481ce369d8d92148340deef3bc5592 (patch)
treef8281b8813202606650389176e4328b469016c0a /components/script/dom
parent83045c7e6889097b15831da2b475fa5c0ed571c9 (diff)
downloadservo-5d3274c181481ce369d8d92148340deef3bc5592.tar.gz
servo-5d3274c181481ce369d8d92148340deef3bc5592.zip
Make HTMLTableRowElementLayoutHelpers methods take self
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/htmltablerowelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmltablerowelement.rs b/components/script/dom/htmltablerowelement.rs
index 9a6b5b875cc..857ef5787c9 100644
--- a/components/script/dom/htmltablerowelement.rs
+++ b/components/script/dom/htmltablerowelement.rs
@@ -146,12 +146,12 @@ impl HTMLTableRowElementMethods for HTMLTableRowElement {
}
pub trait HTMLTableRowElementLayoutHelpers {
- fn get_background_color(&self) -> Option<RGBA>;
+ fn get_background_color(self) -> Option<RGBA>;
}
#[allow(unsafe_code)]
impl HTMLTableRowElementLayoutHelpers for LayoutDom<'_, HTMLTableRowElement> {
- fn get_background_color(&self) -> Option<RGBA> {
+ fn get_background_color(self) -> Option<RGBA> {
unsafe {
(&*self.upcast::<Element>().unsafe_get())
.get_attr_for_layout(&ns!(), &local_name!("bgcolor"))