aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/lib.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2020-01-05 13:10:39 +0000
committerEmilio Cobos Álvarez <emilio@crisal.io>2020-02-12 02:43:08 +0100
commit219c0f6328c1bf043a02cef3cce4d5035554c2dd (patch)
tree7f129d82376139a54fab7bdb344d14d486398d54 /components/style/lib.rs
parent07d0eea5fb2ef09b01981ff4f437eab073a713ae (diff)
downloadservo-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/lib.rs')
-rw-r--r--components/style/lib.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/components/style/lib.rs b/components/style/lib.rs
index 354950f9c15..33862461aa9 100644
--- a/components/style/lib.rs
+++ b/components/style/lib.rs
@@ -173,10 +173,12 @@ pub mod values;
pub use crate::gecko_string_cache as string_cache;
#[cfg(feature = "gecko")]
pub use crate::gecko_string_cache::Atom;
+/// The namespace prefix type for Gecko, which is just an atom.
#[cfg(feature = "gecko")]
-pub use crate::gecko_string_cache::Atom as Prefix;
+pub type Prefix = crate::gecko_string_cache::Atom;
+/// The local name of an element for Gecko, which is just an atom.
#[cfg(feature = "gecko")]
-pub use crate::gecko_string_cache::Atom as LocalName;
+pub type LocalName = crate::gecko_string_cache::Atom;
#[cfg(feature = "gecko")]
pub use crate::gecko_string_cache::Namespace;