Commit 73776508 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Florian Müllner

st: Remove broken parsing of @media rules

This code didn't even pay attention to the
cur_stmt->kind.media_rule->media_list, and unconditonally considered
each statement in the ->ruleset to be of kind ruleset.  That seems
broken.

(The theme doesn't use any @media queries, and they are unsupported
anyway.)

Fixes GNOME/gnome-shell#1979
parent 01c0803a
Pipeline #135361 passed with stages
in 9 minutes and 26 seconds
......@@ -858,16 +858,6 @@ add_matched_properties (StTheme *a_this,
}
break;
case AT_MEDIA_RULE_STMT:
if (cur_stmt->kind.media_rule
&& cur_stmt->kind.media_rule->rulesets
&& cur_stmt->kind.media_rule->rulesets->kind.ruleset
&& cur_stmt->kind.media_rule->rulesets->kind.ruleset->sel_list)
{
sel_list = cur_stmt->kind.media_rule->rulesets->kind.ruleset->sel_list;
}
break;
case AT_IMPORT_RULE_STMT:
{
CRAtImportRule *import_rule = cur_stmt->kind.import_rule;
......@@ -908,6 +898,7 @@ add_matched_properties (StTheme *a_this,
}
}
break;
case AT_MEDIA_RULE_STMT:
case AT_RULE_STMT:
case AT_PAGE_RULE_STMT:
case AT_CHARSET_RULE_STMT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment