mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +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
|
@ -6,10 +6,10 @@
|
|||
//! quickly whether it's worth to share style, and whether two different
|
||||
//! elements can indeed share the same style.
|
||||
|
||||
use bloom::StyleBloom;
|
||||
use context::{SelectorFlagsMap, SharedStyleContext};
|
||||
use dom::TElement;
|
||||
use element_state::*;
|
||||
use selectors::bloom::BloomFilter;
|
||||
use selectors::matching::StyleRelations;
|
||||
use sharing::{StyleSharingCandidate, StyleSharingTarget};
|
||||
use stylearc::Arc;
|
||||
|
@ -102,7 +102,7 @@ pub fn have_same_state_ignoring_visitedness<E>(element: E,
|
|||
pub fn revalidate<E>(target: &mut StyleSharingTarget<E>,
|
||||
candidate: &mut StyleSharingCandidate<E>,
|
||||
shared_context: &SharedStyleContext,
|
||||
bloom: &BloomFilter,
|
||||
bloom: &StyleBloom<E>,
|
||||
selector_flags_map: &mut SelectorFlagsMap<E>)
|
||||
-> bool
|
||||
where E: TElement,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue