mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Stop re-exporting AttrValue.
This commit is contained in:
parent
858ea2eb9a
commit
684510bc94
28 changed files with 39 additions and 37 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue