aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/values/generics/counters.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-07-23 17:33:50 +0200
committerSimon Sapin <simon.sapin@exyr.org>2020-07-24 09:31:24 +0200
commit4a4199c1d64705e8efbe092879ffd914cd8f33fc (patch)
tree3d8bf14012f424ae738fc5b168e41942b378a750 /components/style/values/generics/counters.rs
parent82e274aec996881074dfe79f64d0fd05be8e213c (diff)
downloadservo-4a4199c1d64705e8efbe092879ffd914cd8f33fc.tar.gz
servo-4a4199c1d64705e8efbe092879ffd914cd8f33fc.zip
Don’t parse unspported values of `content`
Diffstat (limited to 'components/style/values/generics/counters.rs')
-rw-r--r--components/style/values/generics/counters.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/style/values/generics/counters.rs b/components/style/values/generics/counters.rs
index fa7e77a8b56..a8deedb2488 100644
--- a/components/style/values/generics/counters.rs
+++ b/components/style/values/generics/counters.rs
@@ -129,7 +129,7 @@ type CounterStyleType = ListStyleType;
#[cfg(feature = "gecko")]
type CounterStyleType = CounterStyle;
-#[cfg(feature = "servo")]
+#[cfg(feature = "servo-layout-2013")]
#[inline]
fn is_decimal(counter_type: &CounterStyleType) -> bool {
*counter_type == ListStyleType::Decimal
@@ -191,9 +191,11 @@ pub enum GenericContentItem<ImageUrl> {
/// Literal string content.
String(crate::OwnedStr),
/// `counter(name, style)`.
+ #[cfg(any(feature = "gecko", feature = "servo-layout-2013"))]
#[css(comma, function)]
Counter(CustomIdent, #[css(skip_if = "is_decimal")] CounterStyleType),
/// `counters(name, separator, style)`.
+ #[cfg(any(feature = "gecko", feature = "servo-layout-2013"))]
#[css(comma, function)]
Counters(
CustomIdent,
@@ -201,12 +203,16 @@ pub enum GenericContentItem<ImageUrl> {
#[css(skip_if = "is_decimal")] CounterStyleType,
),
/// `open-quote`.
+ #[cfg(any(feature = "gecko", feature = "servo-layout-2013"))]
OpenQuote,
/// `close-quote`.
+ #[cfg(any(feature = "gecko", feature = "servo-layout-2013"))]
CloseQuote,
/// `no-open-quote`.
+ #[cfg(any(feature = "gecko", feature = "servo-layout-2013"))]
NoOpenQuote,
/// `no-close-quote`.
+ #[cfg(any(feature = "gecko", feature = "servo-layout-2013"))]
NoCloseQuote,
/// `-moz-alt-content`.
#[cfg(feature = "gecko")]