Skip to content

Commit

Permalink
Auto merge of #8444 - rilut:patch-2, r=frewsxcv
Browse files Browse the repository at this point in the history
refactor(htmlhrelement.rs): color setter now uses macro

Changed the function in #L44-47 to a macro usage. Fixes #8433.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8444)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Nov 10, 2015
2 parents cff9173 + d0d2a64 commit 32a91bc
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/script/dom/htmlhrelement.rs
Original file line number Diff line number Diff line change
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 32a91bc

Please sign in to comment.