mirror of
https://github.com/servo/servo.git
synced 2025-07-31 11:10:22 +01:00
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
This commit is contained in:
parent
4ea378a6ae
commit
9f40b9ba38
19 changed files with 220 additions and 114 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue