aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/gecko/selector_parser.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2023-05-22 15:06:59 +0200
committerOriol Brufau <obrufau@igalia.com>2023-05-24 18:32:43 +0200
commit55d0636fe5dc1d726a6917349b01ceeaf9794ebb (patch)
tree32322762c823588afac59472b84d2f3ba06bfddc /components/style/gecko/selector_parser.rs
parentfa840e166636d1f4529ac8dbaef6fa326d07289b (diff)
downloadservo-55d0636fe5dc1d726a6917349b01ceeaf9794ebb.tar.gz
servo-55d0636fe5dc1d726a6917349b01ceeaf9794ebb.zip
style: Remove layout.css.is-and-where-better-error-recovery.enabled
We shipped this in 84 Differential Revision: https://phabricator.services.mozilla.com/D123623
Diffstat (limited to 'components/style/gecko/selector_parser.rs')
-rw-r--r--components/style/gecko/selector_parser.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/components/style/gecko/selector_parser.rs b/components/style/gecko/selector_parser.rs
index b2fe46a9a2c..5379454daa0 100644
--- a/components/style/gecko/selector_parser.rs
+++ b/components/style/gecko/selector_parser.rs
@@ -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_};
@@ -312,15 +312,6 @@ impl<'a, 'i> ::selectors::Parser<'i> for SelectorParser<'a> {
}
#[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
}