aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlfontelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlfontelement.rs')
-rw-r--r--components/script/dom/htmlfontelement.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/components/script/dom/htmlfontelement.rs b/components/script/dom/htmlfontelement.rs
index 907acc97dcb..f84582bc5dd 100644
--- a/components/script/dom/htmlfontelement.rs
+++ b/components/script/dom/htmlfontelement.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::HTMLFontElementBinding;
use dom::bindings::codegen::Bindings::HTMLFontElementBinding::HTMLFontElementMethods;
use dom::bindings::codegen::InheritTypes::{HTMLElementCast, HTMLFontElementDerived};
@@ -85,12 +85,9 @@ impl VirtualMethods for HTMLFontElement {
}
}
-pub trait HTMLFontElementHelpers {
- fn get_color(&self) -> Option<RGBA>;
-}
-impl HTMLFontElementHelpers for HTMLFontElement {
- fn get_color(&self) -> Option<RGBA> {
+impl HTMLFontElement {
+ pub fn get_color(&self) -> Option<RGBA> {
self.color.get()
}
}