aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/context.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-02-05 07:32:13 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-02-05 07:32:13 +0530
commit87aaa5ffe0ca7da8771883ea40d04d7c1449eea9 (patch)
tree03a2e5730027f8236ef2ad3930f67c742b1d231f /components/layout/context.rs
parent2a6707ce58df27d93e865bffb6b44d396b810c99 (diff)
parent95be0b9a25c288ef8fa0f340d0be6a241e9e1ecc (diff)
downloadservo-87aaa5ffe0ca7da8771883ea40d04d7c1449eea9.tar.gz
servo-87aaa5ffe0ca7da8771883ea40d04d7c1449eea9.zip
Auto merge of #9523 - ruud-v-a:hasher, r=Wafflespeanut
Upgrade to new Hasher API This fixes #9494. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9523) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout/context.rs')
-rw-r--r--components/layout/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/context.rs b/components/layout/context.rs
index 134a6f03b2b..7eb01a68846 100644
--- a/components/layout/context.rs
+++ b/components/layout/context.rs
@@ -21,7 +21,7 @@ use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheThread, ImageResp
use net_traits::image_cache_thread::{ImageOrMetadataAvailable, UsePlaceholder};
use std::cell::{RefCell, RefMut};
use std::collections::HashMap;
-use std::collections::hash_state::DefaultState;
+use std::hash::BuildHasherDefault;
use std::rc::Rc;
use std::sync::mpsc::Sender;
use std::sync::{Arc, Mutex};
@@ -96,7 +96,7 @@ pub struct SharedLayoutContext {
pub canvas_layers_sender: Mutex<Sender<(LayerId, IpcSender<CanvasMsg>)>>,
/// The visible rects for each layer, as reported to us by the compositor.
- pub visible_rects: Arc<HashMap<LayerId, Rect<Au>, DefaultState<FnvHasher>>>,
+ pub visible_rects: Arc<HashMap<LayerId, Rect<Au>, BuildHasherDefault<FnvHasher>>>,
}
pub struct LayoutContext<'a> {