style: Hide -moz-gtk-buttonactivetext from content.

This prevents exposing the value to web content.

Differential Revision: https://phabricator.services.mozilla.com/D32611
This commit is contained in:
Emilio Cobos Álvarez 2019-05-27 20:25:31 +00:00
parent 729bf19437
commit b34c27339b

View file

@ -172,6 +172,7 @@ pub enum SystemColor {
MozOddtreerow,
/// Used for button text when pressed.
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
MozGtkButtonactivetext,
/// Used for button text when pressed.
@ -359,16 +360,14 @@ impl Parse for Color {
Err(e) => {
#[cfg(feature = "gecko")]
{
if let Ok(ident) = input.expect_ident() {
if let Ok(system) = SystemColor::from_ident(ident) {
if let Ok(system) = input.try(|i| SystemColor::parse(context, i)) {
return Ok(Color::System(system));
}
if let Ok(c) = gecko::SpecialColorKeyword::from_ident(ident) {
if let Ok(c) = input.try(gecko::SpecialColorKeyword::parse) {
return Ok(Color::Special(c));
}
}
}
match e.kind {
ParseErrorKind::Basic(BasicParseErrorKind::UnexpectedToken(t)) => {