aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlhrelement.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/htmlhrelement.rs')
-rw-r--r--components/script/dom/htmlhrelement.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/components/script/dom/htmlhrelement.rs b/components/script/dom/htmlhrelement.rs
index 6f2362f592c..eabd970c6f5 100644
--- a/components/script/dom/htmlhrelement.rs
+++ b/components/script/dom/htmlhrelement.rs
@@ -41,10 +41,7 @@ impl HTMLHRElementMethods for HTMLHRElement {
make_getter!(Color);
// https://html.spec.whatwg.org/multipage/#dom-hr-color
- fn SetColor(&self, value: DOMString) {
- self.upcast::<Element>()
- .set_attribute(&atom!("color"), AttrValue::from_legacy_color(value));
- }
+ make_legacy_color_setter!(SetColor, "color");
}
pub trait HTMLHRLayoutHelpers {