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

@ -2,8 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#![feature(as_unsafe_cell)]
extern crate app_units;
#[macro_use]
extern crate cssparser;

View file

@ -28,7 +28,6 @@ use selectors::Element;
use selectors::matching::DeclarationBlock;
use selectors::parser::{AttrSelector, NamespaceConstraint};
use smallvec::VecLike;
use std::cell::{Ref, RefCell, RefMut};
use std::marker::PhantomData;
use std::ops::BitOr;
use std::ptr;
@ -46,6 +45,7 @@ use style::parser::ParserContextExtraData;
#[allow(unused_imports)] // Used in commented-out code.
use style::properties::parse_style_attribute;
use style::properties::{PropertyDeclaration, PropertyDeclarationBlock};
use style::refcell::{Ref, RefCell, RefMut};
use style::restyle_hints::ElementSnapshot;
use style::selector_impl::ElementExt;
#[allow(unused_imports)] // Used in commented-out code.