Tidy up, make the cache a bit more performant.

Haven't measured a lot, will do tomorrow, but I want a test run.
This commit is contained in:
Emilio Cobos Álvarez 2016-08-10 23:17:00 -07:00
parent 3af774bd75
commit 173ec260e6
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 122 additions and 70 deletions

View file

@ -11,7 +11,6 @@ use matching::{ApplicableDeclarations, ElementMatchMethods, MatchMethods, StyleS
use selectors::bloom::BloomFilter;
use selectors::matching::StyleRelations;
use std::cell::RefCell;
use std::sync::Arc;
use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
use tid::tid;
use util::opts;
@ -367,8 +366,8 @@ pub fn recalc_style_at<'a, N, C>(context: &'a C,
// Perform the CSS cascade.
unsafe {
restyle_result = node.cascade_node(context,
parent_opt,
&applicable_declarations);
parent_opt,
&applicable_declarations);
}
// Add ourselves to the LRU cache.