diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-11-22 01:02:22 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-26 16:44:05 +0100 |
commit | 9f40b9ba38a531088c2117b955f40af6ea0d09c8 (patch) | |
tree | e221662df58ec16b2c2027d71fd5df015fe3f526 /components/style/gecko_string_cache/mod.rs | |
parent | 4ea378a6ae232af09135b2037c527466ef5454de (diff) | |
download | servo-9f40b9ba38a531088c2117b955f40af6ea0d09c8.tar.gz servo-9f40b9ba38a531088c2117b955f40af6ea0d09c8.zip |
style: Avoid some allocations in selector serialization.
The allocations in display_to_css_identifier show up in the profiles of
bug 1675628.
Differential Revision: https://phabricator.services.mozilla.com/D97856
Diffstat (limited to 'components/style/gecko_string_cache/mod.rs')
-rw-r--r-- | components/style/gecko_string_cache/mod.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/components/style/gecko_string_cache/mod.rs b/components/style/gecko_string_cache/mod.rs index e9208a5e32e..a6cf017877d 100644 --- a/components/style/gecko_string_cache/mod.rs +++ b/components/style/gecko_string_cache/mod.rs @@ -42,12 +42,6 @@ pub mod namespace; pub use self::namespace::{Namespace, WeakNamespace}; -macro_rules! local_name { - ($s:tt) => { - atom!($s) - }; -} - /// A handle to a Gecko atom. This is a type that can represent either: /// /// * A strong reference to a dynamic atom (an `nsAtom` pointer), in which case |