mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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
This commit is contained in:
parent
07d0eea5fb
commit
219c0f6328
13 changed files with 122 additions and 343 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue