mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Fix the handling of the Bloom filter in the style sharing cache.
This commit is contained in:
parent
a36edb9970
commit
98f95a32da
5 changed files with 61 additions and 27 deletions
|
@ -1092,7 +1092,7 @@ impl Stylist {
|
|||
/// revalidation selectors.
|
||||
pub fn match_revalidation_selectors<E, F>(&self,
|
||||
element: &E,
|
||||
bloom: &BloomFilter,
|
||||
bloom: Option<&BloomFilter>,
|
||||
flags_setter: &mut F)
|
||||
-> BitVec
|
||||
where E: TElement,
|
||||
|
@ -1101,7 +1101,7 @@ impl Stylist {
|
|||
// NB: `MatchingMode` doesn't really matter, given we don't share style
|
||||
// between pseudos.
|
||||
let mut matching_context =
|
||||
MatchingContext::new(MatchingMode::Normal, Some(bloom));
|
||||
MatchingContext::new(MatchingMode::Normal, bloom);
|
||||
|
||||
// Note that, by the time we're revalidating, we're guaranteed that the
|
||||
// candidate and the entry have the same id, classes, and local name.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue