aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlhrelement.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2015-11-10 12:12:25 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2015-11-10 12:12:25 +0530
commit32a91bc6566ab23318a902392ade7096ccbb9e36 (patch)
treebf7c1b87e50dcceb527b8144e622316c91b28197 /components/script/dom/htmlhrelement.rs
parentcff917320809acab007918e4597e9257d02004c3 (diff)
parentd0d2a64628565c8723c3db2c98144fc17537adaf (diff)
downloadservo-32a91bc6566ab23318a902392ade7096ccbb9e36.tar.gz
servo-32a91bc6566ab23318a902392ade7096ccbb9e36.zip
Auto merge of #8444 - rilut:patch-2, r=frewsxcv
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 -->
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 {