aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/css/matching.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout/css/matching.rs')
-rw-r--r--components/layout/css/matching.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/css/matching.rs b/components/layout/css/matching.rs
index f688be2cda5..b474e55e120 100644
--- a/components/layout/css/matching.rs
+++ b/components/layout/css/matching.rs
@@ -153,6 +153,10 @@ impl ApplicableDeclarationsCache {
fn insert(&mut self, declarations: Vec<DeclarationBlock>, style: Arc<ComputedValues>) {
self.cache.insert(ApplicableDeclarationsCacheEntry::new(declarations), style)
}
+
+ pub fn evict_all(&mut self) {
+ self.cache.evict_all();
+ }
}
/// An LRU cache of the last few nodes seen, so that we can aggressively try to reuse their styles.