mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
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 -->
This commit is contained in:
commit
32a91bc656
1 changed files with 1 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue