mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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,
|
||||
|
||||
/// 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)) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue