mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: In CounterStyleOrNone check if SymbolsType is symbolic and skip if it is.
Differential Revision: https://phabricator.services.mozilla.com/D36235
This commit is contained in:
parent
31b166fb1b
commit
069c0b06de
1 changed files with 6 additions and 1 deletions
|
@ -103,7 +103,12 @@ pub enum CounterStyleOrNone {
|
||||||
Name(CustomIdent),
|
Name(CustomIdent),
|
||||||
/// `symbols()`
|
/// `symbols()`
|
||||||
#[css(function)]
|
#[css(function)]
|
||||||
Symbols(SymbolsType, Symbols),
|
Symbols(#[css(skip_if = "is_symbolic")] SymbolsType, Symbols),
|
||||||
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
fn is_symbolic(symbols_type: &SymbolsType) -> bool {
|
||||||
|
*symbols_type == SymbolsType::Symbolic
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CounterStyleOrNone {
|
impl CounterStyleOrNone {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue