diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-08-27 09:38:48 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-08-27 09:38:48 -0600 |
commit | 909429702972d53bf02dfe9a4aa93ea0cb588cf4 (patch) | |
tree | 1a64c15ec378b98ae445257c1c7177af65afee6b /components/script/dom/htmltablesectionelement.rs | |
parent | 2d704312685249c20fa71d983094fc4e689bc5ff (diff) | |
parent | 2a028f66a2e7ab56094cf856ebdc20bc49ab7d4d (diff) | |
download | servo-909429702972d53bf02dfe9a4aa93ea0cb588cf4.tar.gz servo-909429702972d53bf02dfe9a4aa93ea0cb588cf4.zip |
Auto merge of #7401 - nox:rm-helpers, r=Manishearth
Remove helper traits
Now that `JSRef<T>` is gone, there is no need to have helper traits.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7401)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/htmltablesectionelement.rs')
-rw-r--r-- | components/script/dom/htmltablesectionelement.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/components/script/dom/htmltablesectionelement.rs b/components/script/dom/htmltablesectionelement.rs index c9bcb7366f9..4b9c2803642 100644 --- a/components/script/dom/htmltablesectionelement.rs +++ b/components/script/dom/htmltablesectionelement.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::HTMLTableSectionElementBinding; use dom::bindings::codegen::InheritTypes::{HTMLElementCast, HTMLTableSectionElementDerived}; use dom::bindings::js::Root; @@ -51,12 +51,9 @@ impl HTMLTableSectionElement { } } -pub trait HTMLTableSectionElementHelpers { - fn get_background_color(self) -> Option<RGBA>; -} -impl<'a> HTMLTableSectionElementHelpers for &'a HTMLTableSectionElement { - fn get_background_color(self) -> Option<RGBA> { +impl HTMLTableSectionElement { + pub fn get_background_color(&self) -> Option<RGBA> { self.background_color.get() } } |