mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
style: Separate the XBL and shadow dom styling bits.
Bug: 1441022 Reviewed-by: xidorn MozReview-Commit-ID: 2W0BmZ8wWXg
This commit is contained in:
parent
3b96fb2cbe
commit
ef4ea7cc49
7 changed files with 107 additions and 57 deletions
|
@ -260,18 +260,16 @@ impl ElementData {
|
|||
return InvalidationResult::empty();
|
||||
}
|
||||
|
||||
let mut xbl_stylists = SmallVec::<[_; 3]>::new();
|
||||
// FIXME(emilio): This is wrong, needs to account for ::slotted rules
|
||||
// that may apply to elements down the tree.
|
||||
let cut_off_inheritance =
|
||||
let mut non_document_styles = SmallVec::<[_; 3]>::new();
|
||||
let matches_doc_author_rules =
|
||||
element.each_applicable_non_document_style_rule_data(|data, quirks_mode| {
|
||||
xbl_stylists.push((data, quirks_mode))
|
||||
non_document_styles.push((data, quirks_mode))
|
||||
});
|
||||
|
||||
let mut processor = StateAndAttrInvalidationProcessor::new(
|
||||
shared_context,
|
||||
&xbl_stylists,
|
||||
cut_off_inheritance,
|
||||
&non_document_styles,
|
||||
matches_doc_author_rules,
|
||||
element,
|
||||
self,
|
||||
nth_index_cache,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue