Update to selectors 0.14

This commit is contained in:
Simon Sapin 2016-10-28 15:48:36 +02:00
parent afa55dcf55
commit 465efd784c
12 changed files with 28 additions and 106 deletions

View file

@ -3,7 +3,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
use gecko_bindings::structs::nsIAtom;
use selectors::bloom::BloomHash;
use std::borrow::Borrow;
use std::fmt;
use std::ops::Deref;
@ -16,6 +15,8 @@ macro_rules! ns {
#[derive(Debug, PartialEq, Eq, Clone, Default, Hash)]
pub struct Namespace(pub Atom);
#[derive(Hash)]
pub struct WeakNamespace(WeakAtom);
impl Deref for Namespace {
@ -64,17 +65,3 @@ impl PartialEq for WeakNamespace {
weak == other
}
}
impl BloomHash for Namespace {
#[inline]
fn bloom_hash(&self) -> u32 {
self.0.get_hash()
}
}
impl BloomHash for WeakNamespace {
#[inline]
fn bloom_hash(&self) -> u32 {
self.0.get_hash()
}
}