diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2018-01-30 13:52:11 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-02-01 12:43:48 +0100 |
commit | 3d99a4489c21df9a7c227f8d1de69e99921b19af (patch) | |
tree | b11ecc9ba44494a54d0ff57514392783098dcae7 /components/style/macros.rs | |
parent | 09e304adb3e04df0653d13af468c39b9e1875cdb (diff) | |
download | servo-3d99a4489c21df9a7c227f8d1de69e99921b19af.tar.gz servo-3d99a4489c21df9a7c227f8d1de69e99921b19af.zip |
Don't use define_css_keyword_enum in style anymore
Diffstat (limited to 'components/style/macros.rs')
-rw-r--r-- | components/style/macros.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/components/style/macros.rs b/components/style/macros.rs index 8dfbbfd9760..5f20e3c8d0c 100644 --- a/components/style/macros.rs +++ b/components/style/macros.rs @@ -65,28 +65,6 @@ macro_rules! try_match_ident_ignore_ascii_case { }} } -/// A macro for implementing `ToComputedValue`, and `Parse` traits for -/// the enums defined using `define_css_keyword_enum` macro. -/// -/// NOTE: We should either move `Parse` trait to `style_traits` -/// or `define_css_keyword_enum` macro to this crate, but that -/// may involve significant cleanup in both the crates. -macro_rules! add_impls_for_keyword_enum { - ($name:ident) => { - impl $crate::parser::Parse for $name { - #[inline] - fn parse<'i, 't>( - _context: &$crate::parser::ParserContext, - input: &mut ::cssparser::Parser<'i, 't>, - ) -> Result<Self, ::style_traits::ParseError<'i>> { - $name::parse(input) - } - } - - trivial_to_computed_value!($name); - }; -} - macro_rules! define_keyword_type { ($name: ident, $css: expr) => { #[allow(missing_docs)] |