mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Define types for pseudo-class string argument storage.
This commit is contained in:
parent
094052c544
commit
e299905606
2 changed files with 8 additions and 2 deletions
|
@ -160,6 +160,9 @@ impl PseudoElement {
|
|||
}
|
||||
}
|
||||
|
||||
/// The type used for storing pseudo-class string arguments.
|
||||
pub type PseudoClassStringArg = Box<str>;
|
||||
|
||||
/// A non tree-structural pseudo-class.
|
||||
/// See https://drafts.csswg.org/selectors-4/#structural-pseudos
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
|
||||
|
@ -175,7 +178,7 @@ pub enum NonTSPseudoClass {
|
|||
Fullscreen,
|
||||
Hover,
|
||||
Indeterminate,
|
||||
Lang(Box<str>),
|
||||
Lang(PseudoClassStringArg),
|
||||
Link,
|
||||
PlaceholderShown,
|
||||
ReadWrite,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue