зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #18987 - Remove XBL as a separate cascading level in Stylo (from upsuper:xbl-cascade); r=emilio
In Gecko, we handle XBL rules like author rules everywhere, except that XBL rules are added and sorted in an independent step, behave as if it has a separate level. It is not clear to me why Stylo chose to add a separate level for XBL rules, but it doesn't seem that there is anything special to do with XBL rules. This bug happens because we don't handle XBL important rules which are handled as part of author rules in Gecko due to lack of the additional level there. We should just follow what Gecko does here and handle them all the same. (This is the Servo part of [bug 1408811](https://bugzilla.mozilla.org/show_bug.cgi?id=1408811)) Source-Repo: https://github.com/servo/servo Source-Revision: 819dff79087d2c45203d97f9837dd0e07513304e --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : e51cdc33ed34941e4b8617e2dd89dea4b92d8f9e
This commit is contained in:
Родитель
88319b3b55
Коммит
b9aa10448f
|
@ -488,8 +488,6 @@ pub enum CascadeLevel {
|
||||||
PresHints,
|
PresHints,
|
||||||
/// User normal rules.
|
/// User normal rules.
|
||||||
UserNormal,
|
UserNormal,
|
||||||
/// XBL <stylesheet> rules.
|
|
||||||
XBL,
|
|
||||||
/// Author normal rules.
|
/// Author normal rules.
|
||||||
AuthorNormal,
|
AuthorNormal,
|
||||||
/// Style attribute normal rules.
|
/// Style attribute normal rules.
|
||||||
|
@ -1258,7 +1256,6 @@ impl StrongRuleNode {
|
||||||
}
|
}
|
||||||
// Author rules:
|
// Author rules:
|
||||||
CascadeLevel::PresHints |
|
CascadeLevel::PresHints |
|
||||||
CascadeLevel::XBL |
|
|
||||||
CascadeLevel::AuthorNormal |
|
CascadeLevel::AuthorNormal |
|
||||||
CascadeLevel::StyleAttributeNormal |
|
CascadeLevel::StyleAttributeNormal |
|
||||||
CascadeLevel::SMILOverride |
|
CascadeLevel::SMILOverride |
|
||||||
|
|
|
@ -1309,7 +1309,7 @@ impl Stylist {
|
||||||
&mut matching_context,
|
&mut matching_context,
|
||||||
stylist.quirks_mode,
|
stylist.quirks_mode,
|
||||||
flags_setter,
|
flags_setter,
|
||||||
CascadeLevel::XBL,
|
CascadeLevel::AuthorNormal,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Загрузка…
Ссылка в новой задаче