diff options
-rwxr-xr-x | components/style/gecko/regen_atoms.py | 1 | ||||
-rw-r--r-- | components/style/gecko_string_cache/namespace.rs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/components/style/gecko/regen_atoms.py b/components/style/gecko/regen_atoms.py index dfc2252aa89..b6f68fceb7d 100755 --- a/components/style/gecko/regen_atoms.py +++ b/components/style/gecko/regen_atoms.py @@ -130,6 +130,7 @@ RULE_TEMPLATE = ''' '''[1:] MACRO_TEMPLATE = ''' +/// Returns a static atom by passing the literal string it represents. #[macro_export] macro_rules! atom {{ {body}\ diff --git a/components/style/gecko_string_cache/namespace.rs b/components/style/gecko_string_cache/namespace.rs index 4aa4accaf1d..725e1da2169 100644 --- a/components/style/gecko_string_cache/namespace.rs +++ b/components/style/gecko_string_cache/namespace.rs @@ -11,6 +11,8 @@ use std::borrow::Borrow; use std::fmt; use std::ops::Deref; +/// 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 { () => { |