diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-01-05 13:10:39 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2020-02-12 02:43:08 +0100 |
commit | 219c0f6328c1bf043a02cef3cce4d5035554c2dd (patch) | |
tree | 7f129d82376139a54fab7bdb344d14d486398d54 /components/style/gecko_string_cache/namespace.rs | |
parent | 07d0eea5fb2ef09b01981ff4f437eab073a713ae (diff) | |
download | servo-219c0f6328c1bf043a02cef3cce4d5035554c2dd.tar.gz servo-219c0f6328c1bf043a02cef3cce4d5035554c2dd.zip |
style: Use cbindgen for content property.
This cleans up and also allows us to keep the distinction between content: none
and content: normal, which allows us to fix the computed style we return from
getComputedStyle().
Do this last bit from the resolved value instead of StyleAdjuster, because
otherwise we need to tweak every initial struct for ::before / ::after.
Differential Revision: https://phabricator.services.mozilla.com/D58276
Diffstat (limited to 'components/style/gecko_string_cache/namespace.rs')
-rw-r--r-- | components/style/gecko_string_cache/namespace.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/style/gecko_string_cache/namespace.rs b/components/style/gecko_string_cache/namespace.rs index 33883e66941..2dba484e002 100644 --- a/components/style/gecko_string_cache/namespace.rs +++ b/components/style/gecko_string_cache/namespace.rs @@ -25,6 +25,7 @@ macro_rules! ns { /// A Gecko namespace is just a wrapped atom. #[derive(Clone, Debug, Default, Eq, Hash, MallocSizeOf, PartialEq, ToShmem)] +#[repr(transparent)] pub struct Namespace(pub Atom); impl PrecomputedHash for Namespace { |