]> git.pld-linux.org Git - packages/thunderbird.git/blobdiff - rust-1.33.patch
up to 60.7.0
[packages/thunderbird.git] / rust-1.33.patch
index ae33bbeb63bbe7748696d04067b871afd1994554..a9663ff6283b1be9c17076705bb87e5c956ae636 100644 (file)
@@ -1,54 +1,3 @@
-
-# HG changeset patch
-# User Simon Sapin <simon.sapin@exyr.org>
-# Date 1547211748 -3600
-# Node ID 4f2e84dc490dbbac2a35799b6b9230c105f2cd35
-# Parent  07acdca43a9b5e69f0f01d74dab7f6d2e6ef30f2
-Bug 1519729 - Remove unused macro. r=emilio
-
-Cherry-picks a commit from https://github.com/servo/servo/pull/22674
-
-
-diff --git a/servo/components/style_traits/values.rs b/servo/components/style_traits/values.rs
---- a/servo/components/style_traits/values.rs
-+++ b/servo/components/style_traits/values.rs
-@@ -153,34 +153,16 @@ where
-             if !prefix.is_empty() {
-                 self.inner.write_str(prefix)?;
-             }
-         }
-         self.inner.write_char(c)
-     }
- }
--#[macro_export]
--macro_rules! serialize_function {
--    ($dest: expr, $name: ident($( $arg: expr, )+)) => {
--        serialize_function!($dest, $name($($arg),+))
--    };
--    ($dest: expr, $name: ident($first_arg: expr $( , $arg: expr )*)) => {
--        {
--            $dest.write_str(concat!(stringify!($name), "("))?;
--            $first_arg.to_css($dest)?;
--            $(
--                $dest.write_str(", ")?;
--                $arg.to_css($dest)?;
--            )*
--            $dest.write_char(')')
--        }
--    }
--}
--
- /// Convenience wrapper to serialise CSS values separated by a given string.
- pub struct SequenceWriter<'a, 'b: 'a, W: 'b> {
-     inner: &'a mut CssWriter<'b, W>,
-     separator: &'static str,
- }
- impl<'a, 'b, W> SequenceWriter<'a, 'b, W>
- where
-
-
 # HG changeset patch
 # User Simon Sapin <simon.sapin@exyr.org>
 # Date 1547211824 -3600
@@ -116,30 +65,6 @@ diff --git a/servo/components/style/properties/properties.mako.rs b/servo/compon
                  { ${property.ident}, ${"true" if property.boxed else "false"} }
              % endfor
          }
-diff --git a/servo/components/style_traits/values.rs b/servo/components/style_traits/values.rs
---- a/servo/components/style_traits/values.rs
-+++ b/servo/components/style_traits/values.rs
-@@ -427,17 +427,17 @@ impl_to_css_for_predefined_type!(i8);
- impl_to_css_for_predefined_type!(i32);
- impl_to_css_for_predefined_type!(u16);
- impl_to_css_for_predefined_type!(u32);
- impl_to_css_for_predefined_type!(::cssparser::Token<'a>);
- impl_to_css_for_predefined_type!(::cssparser::RGBA);
- impl_to_css_for_predefined_type!(::cssparser::Color);
- impl_to_css_for_predefined_type!(::cssparser::UnicodeRange);
--#[macro_export]
-+/// Define an enum type with unit variants that each corrsepond to a CSS keyword.
- macro_rules! define_css_keyword_enum {
-     (pub enum $name:ident { $($variant:ident = $css:expr,)+ }) => {
-         #[allow(missing_docs)]
-         #[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
-         #[derive(Clone, Copy, Debug, Eq, Hash, MallocSizeOf, PartialEq)]
-         pub enum $name {
-             $($variant),+
-         }
-
-
 # HG changeset patch
 # User Emilio Cobos Álvarez <emilio@crisal.io>
 # Date 1547412158 -3600
@@ -169,28 +94,6 @@ diff --git a/servo/components/style/gecko/regen_atoms.py b/servo/components/styl
  
  
  def write_atom_macro(atoms, file_name):
-diff --git a/servo/components/style/gecko_string_cache/namespace.rs b/servo/components/style/gecko_string_cache/namespace.rs
---- a/servo/components/style/gecko_string_cache/namespace.rs
-+++ b/servo/components/style/gecko_string_cache/namespace.rs
-@@ -6,16 +6,18 @@
- use gecko_bindings::structs::nsAtom;
- use precomputed_hash::PrecomputedHash;
- use std::borrow::Borrow;
- use std::fmt;
- use std::ops::Deref;
- use string_cache::{Atom, WeakAtom};
-+/// In Gecko namespaces are just regular atoms, so this is a simple macro to
-+/// forward one macro to the other.
- #[macro_export]
- macro_rules! ns {
-     () => { $crate::string_cache::Namespace(atom!("")) };
-     ($s: tt) => { $crate::string_cache::Namespace(atom!($s)) };
- }
- /// A Gecko namespace is just a wrapped atom.
- #[derive(Clone, Debug, Default, Eq, Hash, MallocSizeOf, PartialEq)]
 --- firefox-60.6.1/servo/components/style/properties/properties.mako.rs.orig   2019-03-22 06:01:07.000000000 +0100
 +++ firefox-60.6.1/servo/components/style/properties/properties.mako.rs        2019-04-14 12:19:55.687706977 +0200
 @@ -55,6 +55,7 @@
This page took 0.049207 seconds and 4 git commands to generate.