mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Fix ::marker invalidation when we need to potentially insert a marker as a result of a style change.
Differential Revision: https://phabricator.services.mozilla.com/D24888
This commit is contained in:
parent
1f73c524bd
commit
76c0ae565e
1 changed files with 13 additions and 2 deletions
|
@ -750,8 +750,19 @@ where
|
|||
//
|
||||
// Note that we'll also restyle the pseudo-element because
|
||||
// it would match this invalidation.
|
||||
if self.processor.invalidates_on_eager_pseudo_element() && pseudo.is_eager() {
|
||||
invalidated_self = true;
|
||||
if self.processor.invalidates_on_eager_pseudo_element() {
|
||||
if pseudo.is_eager() {
|
||||
invalidated_self = true;
|
||||
}
|
||||
// If we start or stop matching some marker rules, and
|
||||
// don't have a marker, then we need to restyle the
|
||||
// element to potentially create one.
|
||||
//
|
||||
// Same caveats as for other eager pseudos apply, this
|
||||
// could be more fine-grained.
|
||||
if pseudo.is_marker() && self.element.marker_pseudo_element().is_none() {
|
||||
invalidated_self = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue