aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmltablerowelement.rs
diff options
context:
space:
mode:
authorbors-servo <servo-ops@mozilla.com>2020-03-30 10:56:35 -0400
committerGitHub <noreply@github.com>2020-03-30 10:56:35 -0400
commit236762880c48263f8fa2c5a4deb9cf8f7746013c (patch)
treeb651381f3a88b9a46c56018946377bd8b879e737 /components/script/dom/htmltablerowelement.rs
parentfd6f9140f79a855b9db5fe4e305f8ca8b6c1a84f (diff)
parent02fb5a68e6285d86c0a091e4c6ac36a7d436d3f1 (diff)
downloadservo-236762880c48263f8fa2c5a4deb9cf8f7746013c.tar.gz
servo-236762880c48263f8fa2c5a4deb9cf8f7746013c.zip
Auto merge of #26058 - servo:layout-2020-improvements, r=SimonSapin
Make many improvements to the layout/script comms story Now `LayoutDom<'dom, T>` is a mere wrapper around a `&'dom T`.
Diffstat (limited to 'components/script/dom/htmltablerowelement.rs')
-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"))