diff options
Diffstat (limited to 'components/style/node.rs')
-rw-r--r-- | components/style/node.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/style/node.rs b/components/style/node.rs index 4866f27e6c5..a1c9a8071c4 100644 --- a/components/style/node.rs +++ b/components/style/node.rs @@ -5,9 +5,10 @@ //! Traits that nodes must implement. Breaks the otherwise-cyclic dependency between layout and //! style. +use cssparser::RGBA; use legacy::{IntegerAttribute, LengthAttribute, SimpleColorAttribute, UnsignedIntegerAttribute}; use selectors::AttrSelector; -use servo_util::str::{LengthOrPercentageOrAuto, SimpleColor}; +use servo_util::str::LengthOrPercentageOrAuto; use string_cache::{Atom, Namespace}; pub trait TNode<'a, E: TElement<'a>> : Clone + Copy { @@ -60,5 +61,5 @@ pub trait TElementAttributes : Copy { fn get_length_attribute(self, attribute: LengthAttribute) -> LengthOrPercentageOrAuto; fn get_integer_attribute(self, attribute: IntegerAttribute) -> Option<i32>; fn get_unsigned_integer_attribute(self, attribute: UnsignedIntegerAttribute) -> Option<u32>; - fn get_simple_color_attribute(self, attribute: SimpleColorAttribute) -> Option<SimpleColor>; + fn get_simple_color_attribute(self, attribute: SimpleColorAttribute) -> Option<RGBA>; } |