mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Rustfmt recent changes.
This commit is contained in:
parent
deba73a528
commit
57874ae90a
10 changed files with 73 additions and 56 deletions
|
@ -49,8 +49,8 @@ use selectors::NthIndexCache;
|
|||
use servo_arc::{Arc, ArcBorrow};
|
||||
use smallbitvec::SmallBitVec;
|
||||
use smallvec::SmallVec;
|
||||
use std::{mem, ops};
|
||||
use std::sync::Mutex;
|
||||
use std::{mem, ops};
|
||||
use style_traits::viewport::ViewportConstraints;
|
||||
|
||||
/// The type of the stylesheets that the stylist contains.
|
||||
|
@ -271,12 +271,8 @@ impl DocumentCascadeData {
|
|||
let origin_sheets = flusher.origin_sheets(Origin::UserAgent);
|
||||
let _unused_cascade_datas = {
|
||||
let mut ua_cache = UA_CASCADE_DATA_CACHE.lock().unwrap();
|
||||
self.user_agent = ua_cache.lookup(
|
||||
origin_sheets,
|
||||
device,
|
||||
quirks_mode,
|
||||
guards.ua_or_user,
|
||||
)?;
|
||||
self.user_agent =
|
||||
ua_cache.lookup(origin_sheets, device, quirks_mode, guards.ua_or_user)?;
|
||||
debug!("User agent data cache size {:?}", ua_cache.len());
|
||||
ua_cache.take_unused()
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue