mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Properly handle ::backdrop
Depends on D164807 Differential Revision: https://phabricator.services.mozilla.com/D164908
This commit is contained in:
parent
b9e38017e7
commit
9a862da88f
1 changed files with 7 additions and 2 deletions
|
@ -966,6 +966,7 @@ impl Stylist {
|
|||
element: E,
|
||||
pseudo: &PseudoElement,
|
||||
rule_inclusion: RuleInclusion,
|
||||
originating_element_style: &Arc<ComputedValues>,
|
||||
parent_style: &Arc<ComputedValues>,
|
||||
is_probe: bool,
|
||||
matching_fn: Option<&dyn Fn(&PseudoElement) -> bool>,
|
||||
|
@ -976,6 +977,7 @@ impl Stylist {
|
|||
let cascade_inputs = self.lazy_pseudo_rules(
|
||||
guards,
|
||||
element,
|
||||
originating_element_style,
|
||||
parent_style,
|
||||
pseudo,
|
||||
is_probe,
|
||||
|
@ -1105,6 +1107,7 @@ impl Stylist {
|
|||
&self,
|
||||
guards: &StylesheetGuards,
|
||||
element: E,
|
||||
originating_element_style: &Arc<ComputedValues>,
|
||||
parent_style: &Arc<ComputedValues>,
|
||||
pseudo: &PseudoElement,
|
||||
is_probe: bool,
|
||||
|
@ -1134,7 +1137,8 @@ impl Stylist {
|
|||
);
|
||||
|
||||
matching_context.pseudo_element_matching_fn = matching_fn;
|
||||
matching_context.extra_data.originating_element_style = Some(parent_style.clone());
|
||||
matching_context.extra_data.originating_element_style =
|
||||
Some(originating_element_style.clone());
|
||||
|
||||
self.push_applicable_declarations(
|
||||
element,
|
||||
|
@ -1165,7 +1169,8 @@ impl Stylist {
|
|||
needs_selector_flags,
|
||||
);
|
||||
matching_context.pseudo_element_matching_fn = matching_fn;
|
||||
matching_context.extra_data.originating_element_style = Some(parent_style.clone());
|
||||
matching_context.extra_data.originating_element_style =
|
||||
Some(originating_element_style.clone());
|
||||
|
||||
self.push_applicable_declarations(
|
||||
element,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue