mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
style: Implement Kleene logic for query feature expressions
Differential Revision: https://phabricator.services.mozilla.com/D163879
This commit is contained in:
parent
134f680503
commit
6c02e9fdaa
2 changed files with 7 additions and 6 deletions
|
@ -331,7 +331,7 @@ impl QueryCondition {
|
|||
/// <general-enclosed>.
|
||||
pub fn matches(&self, context: &computed::Context) -> KleeneValue {
|
||||
match *self {
|
||||
QueryCondition::Feature(ref f) => KleeneValue::from(f.matches(context)),
|
||||
QueryCondition::Feature(ref f) => f.matches(context),
|
||||
QueryCondition::GeneralEnclosed(_) => KleeneValue::Unknown,
|
||||
QueryCondition::InParens(ref c) => c.matches(context),
|
||||
QueryCondition::Not(ref c) => !c.matches(context),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue