diff options
author | Ruud van Asseldonk <dev@veniogames.com> | 2016-02-03 20:06:39 +0100 |
---|---|---|
committer | Ruud van Asseldonk <dev@veniogames.com> | 2016-02-03 20:06:39 +0100 |
commit | 95be0b9a25c288ef8fa0f340d0be6a241e9e1ecc (patch) | |
tree | c769ead9fb3fc507941ebf5e1e98f582bf8c9948 /components/layout/layout_thread.rs | |
parent | b1fffcd85de45b0c7b917beef2718621a323e5cf (diff) | |
download | servo-95be0b9a25c288ef8fa0f340d0be6a241e9e1ecc.tar.gz servo-95be0b9a25c288ef8fa0f340d0be6a241e9e1ecc.zip |
Upgrade to new Hasher API
Diffstat (limited to 'components/layout/layout_thread.rs')
-rw-r--r-- | components/layout/layout_thread.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/layout/layout_thread.rs b/components/layout/layout_thread.rs index 206bfe4c82d..49875094b4f 100644 --- a/components/layout/layout_thread.rs +++ b/components/layout/layout_thread.rs @@ -54,7 +54,7 @@ use serde_json; use std::borrow::ToOwned; use std::cell::RefCell; use std::collections::HashMap; -use std::collections::hash_state::DefaultState; +use std::hash::BuildHasherDefault; use std::ops::{Deref, DerefMut}; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::mpsc::{channel, Sender, Receiver}; @@ -195,7 +195,7 @@ pub struct LayoutThread { /// The position and size of the visible rect for each layer. We do not build display lists /// for any areas more than `DISPLAY_PORT_SIZE_FACTOR` screens away from this area. - visible_rects: Arc<HashMap<LayerId, Rect<Au>, DefaultState<FnvHasher>>>, + visible_rects: Arc<HashMap<LayerId, Rect<Au>, BuildHasherDefault<FnvHasher>>>, /// The list of currently-running animations. running_animations: Arc<RwLock<HashMap<OpaqueNode, Vec<Animation>>>>, @@ -430,7 +430,7 @@ impl LayoutThread { new_animations_receiver: new_animations_receiver, outstanding_web_fonts: outstanding_web_fonts_counter, root_flow: None, - visible_rects: Arc::new(HashMap::with_hash_state(Default::default())), + visible_rects: Arc::new(HashMap::with_hasher(Default::default())), running_animations: Arc::new(RwLock::new(HashMap::new())), expired_animations: Arc::new(RwLock::new(HashMap::new())), epoch: Epoch(0), @@ -1099,7 +1099,7 @@ impl LayoutThread { // layers have moved more than `DISPLAY_PORT_THRESHOLD_SIZE_FACTOR` away from their last // positions. let mut must_regenerate_display_lists = false; - let mut old_visible_rects = HashMap::with_hash_state(Default::default()); + let mut old_visible_rects = HashMap::with_hasher(Default::default()); let inflation_amount = Size2D::new(self.viewport_size.width * DISPLAY_PORT_THRESHOLD_SIZE_FACTOR, self.viewport_size.height * DISPLAY_PORT_THRESHOLD_SIZE_FACTOR); |