From 8667cea4ca9f0cbb2806a2323b6cc2130d846008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 13 Jul 2017 16:21:50 +0200 Subject: [PATCH] style: Don't stop looking at the sharing cache for various reasons. All the information that made those failures expensive is now lazily computed and cached, or eagerly computed anyway, so seems not worth to stop iteration. --- components/style/sharing/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/components/style/sharing/mod.rs b/components/style/sharing/mod.rs index c7c2c946cc8..f330f226090 100644 --- a/components/style/sharing/mod.rs +++ b/components/style/sharing/mod.rs @@ -595,16 +595,6 @@ impl StyleSharingCandidateCache { } Err(miss) => { debug!("Cache miss: {:?}", miss); - - // Cache miss, let's see what kind of failure to decide - // whether we keep trying or not. - match miss { - // Too expensive failure, give up, we don't want another - // one of these. - CacheMiss::PresHints | - CacheMiss::Revalidation => break, - _ => {} - } } } }