mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Use RefCell in DOMRefCell to reduce duplicated code.
This commit is contained in:
parent
c0016c7438
commit
86d609abaf
8 changed files with 28 additions and 95 deletions
|
@ -2,7 +2,7 @@
|
|||
* 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/. */
|
||||
|
||||
use dom::bindings::cell::{DOMRefCell, Ref, RefMut};
|
||||
use dom::bindings::cell::DOMRefCell;
|
||||
use dom::bindings::codegen::Bindings::DocumentBinding::DocumentMethods;
|
||||
use dom::bindings::codegen::InheritTypes::NodeCast;
|
||||
use dom::bindings::js::{JS, JSRef, Temporary, OptionalRootable};
|
||||
|
@ -30,7 +30,7 @@ use servo_util::geometry::{Au, MAX_RECT};
|
|||
use servo_util::geometry;
|
||||
use servo_util::str::DOMString;
|
||||
use servo_util::smallvec::{SmallVec1, SmallVec};
|
||||
use std::cell::Cell;
|
||||
use std::cell::{Cell, Ref, RefMut};
|
||||
use std::comm::{channel, Receiver, Empty, Disconnected};
|
||||
use std::mem::replace;
|
||||
use std::num::abs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue