diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-26 22:22:12 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-26 22:25:11 +0200 |
commit | e3440c8a593b4b64908f0ca42b5d17c82965a7f4 (patch) | |
tree | aead8f47ed499363ad05bd39c25235967096432e /components/style/node.rs | |
parent | 582ee1c2b3eced29a942ac692943a8b8a093e46f (diff) | |
download | servo-e3440c8a593b4b64908f0ca42b5d17c82965a7f4.tar.gz servo-e3440c8a593b4b64908f0ca42b5d17c82965a7f4.zip |
Move bgcolor over to the new infrastructure.
Note that I call is_htmltabledatacellelement in
synthesize_presentational_hints_for_legacy_attributes, rather than
is_htmltablecellelement (which was used in
get_simple_color_attribute_for_layout), because that function was never called
for th elements.
Diffstat (limited to 'components/style/node.rs')
-rw-r--r-- | components/style/node.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/components/style/node.rs b/components/style/node.rs index 4e667ef1286..6d2c84ac8cc 100644 --- a/components/style/node.rs +++ b/components/style/node.rs @@ -5,8 +5,7 @@ //! Traits that nodes must implement. Breaks the otherwise-cyclic dependency between layout and //! style. -use cssparser::RGBA; -use legacy::{IntegerAttribute, LengthAttribute, SimpleColorAttribute, UnsignedIntegerAttribute}; +use legacy::{IntegerAttribute, LengthAttribute, UnsignedIntegerAttribute}; use properties::PropertyDeclaration; use util::str::LengthOrPercentageOrAuto; @@ -20,5 +19,4 @@ 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<RGBA>; } |