mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
3af774bd75
commit
173ec260e6
3 changed files with 122 additions and 70 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue