diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2017-02-22 17:15:31 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2017-02-22 17:36:00 +0100 |
commit | d2e0098a030f06c496d8e6e1a778b4f6b4103670 (patch) | |
tree | 9b89355b69f6ea4ae2ae708982c2d4f91cedff0b | |
parent | 469ed934e75f1e231ffd005e7b3cb058fcca307f (diff) | |
download | servo-d2e0098a030f06c496d8e6e1a778b4f6b4103670.tar.gz servo-d2e0098a030f06c496d8e6e1a778b4f6b4103670.zip |
Stylo: add `content: -moz-alt-content`
-rw-r--r-- | components/style/properties/gecko.mako.rs | 2 | ||||
-rw-r--r-- | components/style/properties/longhand/counters.mako.rs | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 34f6981925b..ac98e99ee24 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -3120,6 +3120,8 @@ clip-path => self.gecko.mContents[i].mType = eStyleContentType_NoOpenQuote, ContentItem::NoCloseQuote => self.gecko.mContents[i].mType = eStyleContentType_NoCloseQuote, + ContentItem::MozAltContent + => self.gecko.mContents[i].mType = eStyleContentType_AltContent, ContentItem::Counter(..) | ContentItem::Counters(..) => self.gecko.mContents[i].mType = eStyleContentType_Uninitialized, diff --git a/components/style/properties/longhand/counters.mako.rs b/components/style/properties/longhand/counters.mako.rs index 265e4b9bfe0..e44a49233ed 100644 --- a/components/style/properties/longhand/counters.mako.rs +++ b/components/style/properties/longhand/counters.mako.rs @@ -44,6 +44,11 @@ NoOpenQuote, /// `no-close-quote`. NoCloseQuote, + + % if product == "gecko": + /// `-moz-alt-content` + MozAltContent, + % endif } impl ToCss for ContentItem { @@ -72,6 +77,10 @@ ContentItem::CloseQuote => dest.write_str("close-quote"), ContentItem::NoOpenQuote => dest.write_str("no-open-quote"), ContentItem::NoCloseQuote => dest.write_str("no-close-quote"), + + % if product == "gecko": + ContentItem::MozAltContent => dest.write_str("-moz-alt-content"), + % endif } } } @@ -159,6 +168,11 @@ "close-quote" => content.push(ContentItem::CloseQuote), "no-open-quote" => content.push(ContentItem::NoOpenQuote), "no-close-quote" => content.push(ContentItem::NoCloseQuote), + + % if product == "gecko": + "-moz-alt-content" => content.push(ContentItem::MozAltContent), + % endif + _ => return Err(()) } } |