mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Revert "Make DOMRefCell use style’s copy of RefCell"
This reverts commit ec723057b2
.
This commit is contained in:
parent
c831369e3e
commit
fbde392c3d
12 changed files with 10 additions and 35 deletions
|
@ -19,9 +19,9 @@ use js::jsapi::JS_ParseJSON;
|
|||
use js::jsapi::Value as JSValue;
|
||||
use js::jsval::UndefinedValue;
|
||||
use mime::{Mime, TopLevel, SubLevel};
|
||||
use std::cell::Ref;
|
||||
use std::rc::Rc;
|
||||
use std::str;
|
||||
use style::refcell::Ref;
|
||||
use url::form_urlencoded;
|
||||
|
||||
pub enum BodyType {
|
||||
|
|
|
@ -15,10 +15,10 @@ use dom::element::{AttributeMutation, Element};
|
|||
use dom::virtualmethods::vtable_for;
|
||||
use dom::window::Window;
|
||||
use std::borrow::ToOwned;
|
||||
use std::cell::Ref;
|
||||
use std::mem;
|
||||
use string_cache::{Atom, Namespace};
|
||||
use style::attr::{AttrIdentifier, AttrValue};
|
||||
use style::refcell::Ref;
|
||||
|
||||
// https://dom.spec.whatwg.org/#interface-attr
|
||||
#[dom_struct]
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
//! A shareable mutable container for the DOM.
|
||||
|
||||
use style::refcell::{BorrowError, BorrowMutError, Ref, RefCell, RefMut};
|
||||
use std::cell::{BorrowError, BorrowMutError, Ref, RefCell, RefMut};
|
||||
use style::thread_state;
|
||||
|
||||
/// A mutable field in the DOM.
|
||||
|
|
|
@ -19,7 +19,7 @@ use dom::element::Element;
|
|||
use dom::node::{Node, NodeDamage};
|
||||
use dom::processinginstruction::ProcessingInstruction;
|
||||
use dom::text::Text;
|
||||
use style::refcell::Ref;
|
||||
use std::cell::Ref;
|
||||
use util::opts;
|
||||
|
||||
// https://dom.spec.whatwg.org/#characterdata
|
||||
|
|
|
@ -113,7 +113,7 @@ use script_traits::UntrustedNodeAddress;
|
|||
use std::ascii::AsciiExt;
|
||||
use std::borrow::ToOwned;
|
||||
use std::boxed::FnBox;
|
||||
use std::cell::Cell;
|
||||
use std::cell::{Cell, Ref, RefMut};
|
||||
use std::collections::HashMap;
|
||||
use std::collections::hash_map::Entry::{Occupied, Vacant};
|
||||
use std::default::Default;
|
||||
|
@ -125,7 +125,6 @@ use std::time::{Duration, Instant};
|
|||
use string_cache::{Atom, QualName};
|
||||
use style::attr::AttrValue;
|
||||
use style::context::ReflowGoal;
|
||||
use style::refcell::{Ref, RefMut};
|
||||
use style::selector_impl::ElementSnapshot;
|
||||
use style::str::{split_html_space_chars, str_join};
|
||||
use style::stylesheets::Stylesheet;
|
||||
|
|
|
@ -14,9 +14,8 @@ use dom::bindings::reflector::{reflect_dom_object, Reflectable, Reflector};
|
|||
use dom::dommatrix::DOMMatrix;
|
||||
use dom::dompoint::DOMPoint;
|
||||
use euclid::{Matrix4D, Point4D, Radians};
|
||||
use std::cell::Cell;
|
||||
use std::cell::{Cell, Ref};
|
||||
use std::f64;
|
||||
use style::refcell::Ref;
|
||||
|
||||
#[dom_struct]
|
||||
pub struct DOMMatrixReadOnly {
|
||||
|
|
|
@ -76,7 +76,7 @@ use selectors::matching::{HAS_EDGE_CHILD_SELECTOR, HAS_SLOW_SELECTOR, HAS_SLOW_S
|
|||
use selectors::parser::{AttrSelector, NamespaceConstraint, parse_author_origin_selector_list_from_str};
|
||||
use std::ascii::AsciiExt;
|
||||
use std::borrow::Cow;
|
||||
use std::cell::Cell;
|
||||
use std::cell::{Cell, Ref};
|
||||
use std::convert::TryFrom;
|
||||
use std::default::Default;
|
||||
use std::fmt;
|
||||
|
@ -90,7 +90,6 @@ use style::parser::ParserContextExtraData;
|
|||
use style::properties::{DeclaredValue, Importance};
|
||||
use style::properties::{PropertyDeclaration, PropertyDeclarationBlock, parse_style_attribute};
|
||||
use style::properties::longhands::{self, background_image, border_spacing, font_family, font_size, overflow_x};
|
||||
use style::refcell::Ref;
|
||||
use style::selector_impl::{NonTSPseudoClass, ServoSelectorImpl};
|
||||
use style::selector_matching::ApplicableDeclarationBlock;
|
||||
use style::sink::Push;
|
||||
|
|
|
@ -35,10 +35,9 @@ use net_traits::request::Referrer as NetTraitsRequestReferrer;
|
|||
use net_traits::request::Request as NetTraitsRequest;
|
||||
use net_traits::request::RequestMode as NetTraitsRequestMode;
|
||||
use net_traits::request::Type as NetTraitsRequestType;
|
||||
use std::cell::Cell;
|
||||
use std::cell::{Cell, Ref};
|
||||
use std::mem;
|
||||
use std::rc::Rc;
|
||||
use style::refcell::Ref;
|
||||
use url::Url;
|
||||
|
||||
#[dom_struct]
|
||||
|
|
|
@ -22,10 +22,10 @@ use hyper::header::Headers as HyperHeaders;
|
|||
use hyper::status::StatusCode;
|
||||
use hyper_serde::Serde;
|
||||
use net_traits::response::{ResponseBody as NetTraitsResponseBody};
|
||||
use std::cell::Ref;
|
||||
use std::mem;
|
||||
use std::rc::Rc;
|
||||
use std::str::FromStr;
|
||||
use style::refcell::Ref;
|
||||
use url::Position;
|
||||
use url::Url;
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#![feature(slice_patterns)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
#![feature(question_mark)]
|
||||
#![feature(try_borrow)]
|
||||
#![feature(try_from)]
|
||||
|
||||
#![deny(unsafe_code)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue