Use our copy of RefCell for style data.

This allows removing `#![feature(as_unsafe_cell)]` in geckolib
and make progress towards #11815.
This commit is contained in:
Simon Sapin 2016-06-23 16:02:33 +02:00
parent 0fb5d634a0
commit f7f81e0ed0
12 changed files with 481 additions and 11 deletions

View file

@ -8,12 +8,12 @@ use context::SharedStyleContext;
use data::PrivateStyleData;
use element_state::ElementState;
use properties::{ComputedValues, PropertyDeclaration, PropertyDeclarationBlock};
use refcell::{Ref, RefMut};
use restyle_hints::{ElementSnapshot, RESTYLE_DESCENDANTS, RESTYLE_LATER_SIBLINGS, RESTYLE_SELF, RestyleHint};
use selector_impl::{ElementExt, SelectorImplExt};
use selectors::Element;
use selectors::matching::DeclarationBlock;
use smallvec::VecLike;
use std::cell::{Ref, RefMut};
use std::ops::BitOr;
use std::sync::Arc;
use string_cache::{Atom, Namespace};