stylo: Get rules from Gecko XBL stylesheets in cascading (Bug 1290276)

This commit is contained in:
Ting-Yu Lin 2017-06-05 14:17:18 +08:00
parent ad47d33511
commit 2411749fcf
4 changed files with 138 additions and 11 deletions

View file

@ -406,6 +406,8 @@ pub enum CascadeLevel {
PresHints,
/// User normal rules.
UserNormal,
/// XBL <stylesheet> rules.
XBL,
/// Author normal rules.
AuthorNormal,
/// Style attribute normal rules.
@ -1049,7 +1051,8 @@ impl StrongRuleNode {
CascadeLevel::UANormal |
CascadeLevel::UAImportant |
CascadeLevel::UserNormal |
CascadeLevel::UserImportant => {
CascadeLevel::UserImportant |
CascadeLevel::XBL => {
for (id, declaration) in longhands {
if properties.contains(id) {
// This property was set by a non-author rule.