diff options
Diffstat (limited to 'components/style/sequential.rs')
-rw-r--r-- | components/style/sequential.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/style/sequential.rs b/components/style/sequential.rs index 334eecc5959..d3db166b446 100644 --- a/components/style/sequential.rs +++ b/components/style/sequential.rs @@ -35,5 +35,6 @@ pub fn traverse_dom<N, C>(root: N, if context.should_process(root) { doit::<N, C>(&context, root); } + // Clear the local LRU cache since we store stateful elements inside. + context.local_context().style_sharing_candidate_cache.borrow_mut().clear(); } - |