diff options
Diffstat (limited to 'components/script/dom/htmltablerowelement.rs')
-rw-r--r-- | components/script/dom/htmltablerowelement.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/components/script/dom/htmltablerowelement.rs b/components/script/dom/htmltablerowelement.rs index 3526c4ab122..50bf4fac967 100644 --- a/components/script/dom/htmltablerowelement.rs +++ b/components/script/dom/htmltablerowelement.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use dom::attr::{Attr, AttrHelpers}; +use dom::attr::Attr; use dom::bindings::codegen::Bindings::HTMLTableRowElementBinding; use dom::bindings::codegen::InheritTypes::{HTMLElementCast, HTMLTableRowElementDerived}; use dom::bindings::js::Root; @@ -53,12 +53,9 @@ impl HTMLTableRowElement { } -pub trait HTMLTableRowElementHelpers { - fn get_background_color(self) -> Option<RGBA>; -} -impl<'a> HTMLTableRowElementHelpers for &'a HTMLTableRowElement { - fn get_background_color(self) -> Option<RGBA> { +impl HTMLTableRowElement { + pub fn get_background_color(&self) -> Option<RGBA> { self.background_color.get() } } |