mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
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:
parent
729bf19437
commit
b34c27339b
1 changed files with 6 additions and 7 deletions
|
@ -172,6 +172,7 @@ pub enum SystemColor {
|
||||||
MozOddtreerow,
|
MozOddtreerow,
|
||||||
|
|
||||||
/// Used for button text when pressed.
|
/// Used for button text when pressed.
|
||||||
|
#[parse(condition = "ParserContext::in_ua_or_chrome_sheet")]
|
||||||
MozGtkButtonactivetext,
|
MozGtkButtonactivetext,
|
||||||
|
|
||||||
/// Used for button text when pressed.
|
/// Used for button text when pressed.
|
||||||
|
@ -359,14 +360,12 @@ impl Parse for Color {
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
#[cfg(feature = "gecko")]
|
#[cfg(feature = "gecko")]
|
||||||
{
|
{
|
||||||
if let Ok(ident) = input.expect_ident() {
|
if let Ok(system) = input.try(|i| SystemColor::parse(context, i)) {
|
||||||
if let Ok(system) = SystemColor::from_ident(ident) {
|
return Ok(Color::System(system));
|
||||||
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));
|
return Ok(Color::Special(c));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue