stylo: Fix has_author_specified_rules() for rules in XBL stylesheets (bug 1372062)

MozReview-Commit-ID: GBFgr5pqROk
This commit is contained in:
Ting-Yu Lin 2017-06-19 18:35:07 +08:00
parent 4d997f0d0c
commit 945c3e4a2b

View file

@ -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 |