aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/rule_tree/mod.rs
diff options
context:
space:
mode:
authorTing-Yu Lin <tlin@mozilla.com>2017-06-05 14:17:18 +0800
committerTing-Yu Lin <tlin@mozilla.com>2017-06-08 11:18:44 +0800
commit2411749fcfc7f97c35b5cf375498499d59e3a19e (patch)
tree13a9629c1de03ca03dc24b8bf721fe432069abb9 /components/style/rule_tree/mod.rs
parentad47d33511c318fe208158bb16deb5086979e0c7 (diff)
downloadservo-2411749fcfc7f97c35b5cf375498499d59e3a19e.tar.gz
servo-2411749fcfc7f97c35b5cf375498499d59e3a19e.zip
stylo: Get rules from Gecko XBL stylesheets in cascading (Bug 1290276)
Diffstat (limited to 'components/style/rule_tree/mod.rs')
-rw-r--r--components/style/rule_tree/mod.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/components/style/rule_tree/mod.rs b/components/style/rule_tree/mod.rs
index 37e7334b9db..4e2a7ca61ec 100644
--- a/components/style/rule_tree/mod.rs
+++ b/components/style/rule_tree/mod.rs
@@ -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.