Skip to content

Commit

Permalink
refactor(htmlhrelement.rs): color setter now uses macro
Browse files Browse the repository at this point in the history
Changed the function in #L44-47 to a macro usage
  • Loading branch information
luthfianto committed Nov 10, 2015
1 parent b386008 commit d0d2a64
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/script/dom/htmlhrelement.rs
Expand Up @@ -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 {
Expand Down

0 comments on commit d0d2a64

Please sign in to comment.