mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Remove layout.css.is-and-where-better-error-recovery.enabled
We shipped this in 84 Differential Revision: https://phabricator.services.mozilla.com/D123623
This commit is contained in:
parent
fa840e1666
commit
55d0636fe5
2 changed files with 5 additions and 23 deletions
|
@ -14,7 +14,7 @@ use crate::string_cache::{Atom, Namespace, WeakAtom, WeakNamespace};
|
|||
use crate::values::{AtomIdent, AtomString};
|
||||
use cssparser::{BasicParseError, BasicParseErrorKind, Parser};
|
||||
use cssparser::{CowRcStr, SourceLocation, ToCss, Token};
|
||||
use selectors::parser::{ParseErrorRecovery, SelectorParseErrorKind};
|
||||
use selectors::parser::SelectorParseErrorKind;
|
||||
use selectors::SelectorList;
|
||||
use std::fmt;
|
||||
use style_traits::{CssWriter, ParseError, StyleParseErrorKind, ToCss as ToCss_};
|
||||
|
@ -311,15 +311,6 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
|
|||
true
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn is_and_where_error_recovery(&self) -> ParseErrorRecovery {
|
||||
if static_prefs::pref!("layout.css.is-and-where-better-error-recovery.enabled") {
|
||||
ParseErrorRecovery::IgnoreInvalidSelector
|
||||
} else {
|
||||
ParseErrorRecovery::DiscardList
|
||||
}
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn parse_part(&self) -> bool {
|
||||
true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue