mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Auto merge of #17426 - aethanyc:fix-has-author-specified-rules-xbl, r=heycam
stylo: Fix has_author_specified_rules() for rules in XBL stylesheets This change is reviewed in https://bugzilla.mozilla.org/show_bug.cgi?id=1372062 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17426) <!-- Reviewable:end -->
This commit is contained in:
commit
a7ac9214f2
1 changed files with 2 additions and 2 deletions
|
@ -1112,8 +1112,7 @@ impl StrongRuleNode {
|
|||
CascadeLevel::UANormal |
|
||||
CascadeLevel::UAImportant |
|
||||
CascadeLevel::UserNormal |
|
||||
CascadeLevel::UserImportant |
|
||||
CascadeLevel::XBL => {
|
||||
CascadeLevel::UserImportant => {
|
||||
for (id, declaration) in longhands {
|
||||
if properties.contains(id) {
|
||||
// This property was set by a non-author rule.
|
||||
|
@ -1136,6 +1135,7 @@ impl StrongRuleNode {
|
|||
}
|
||||
// Author rules:
|
||||
CascadeLevel::PresHints |
|
||||
CascadeLevel::XBL |
|
||||
CascadeLevel::AuthorNormal |
|
||||
CascadeLevel::StyleAttributeNormal |
|
||||
CascadeLevel::SMILOverride |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue