mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
0fb5d634a0
commit
f7f81e0ed0
12 changed files with 481 additions and 11 deletions
|
@ -2,7 +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)]
|
||||
#![feature(box_patterns)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(custom_derive)]
|
||||
|
|
|
@ -34,9 +34,9 @@ use core::nonzero::NonZero;
|
|||
use data::{LayoutDataFlags, PrivateLayoutData};
|
||||
use script_layout_interface::wrapper_traits::{LayoutNode, ThreadSafeLayoutNode};
|
||||
use script_layout_interface::{OpaqueStyleAndLayoutData, PartialStyleAndLayoutData};
|
||||
use std::cell::{Ref, RefCell, RefMut};
|
||||
use style::computed_values::content::{self, ContentItem};
|
||||
use style::properties::ComputedValues;
|
||||
use style::refcell::{Ref, RefCell, RefMut};
|
||||
|
||||
pub type NonOpaqueStyleAndLayoutData = *mut RefCell<PrivateLayoutData>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue