Stop re-exporting AttrValue.

This commit is contained in:
Ms2ger 2016-06-07 13:15:23 +02:00
parent 858ea2eb9a
commit 684510bc94
28 changed files with 39 additions and 37 deletions

View file

@ -228,9 +228,9 @@ macro_rules! make_atomic_setter(
macro_rules! make_legacy_color_setter(
( $attr:ident, $htmlname:tt ) => (
fn $attr(&self, value: DOMString) {
use dom::attr::AttrValue;
use dom::bindings::inheritance::Castable;
use dom::element::Element;
use style::attr::AttrValue;
let element = self.upcast::<Element>();
let value = AttrValue::from_legacy_color(value.into());
element.set_attribute(&atom!($htmlname), value)