mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Switch some uses of Arc<AtomicRefCell<T>>
over to ArcRefCell<T>
This commit is contained in:
parent
5b3f277465
commit
1d9f669cf0
2 changed files with 7 additions and 8 deletions
|
@ -5,19 +5,17 @@
|
|||
use crate::cell::ArcRefCell;
|
||||
use crate::flow::inline::InlineLevelBox;
|
||||
use crate::flow::BlockLevelBox;
|
||||
use atomic_refcell::AtomicRefCell;
|
||||
use servo_arc::Arc;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct LayoutDataForElement {
|
||||
pub(super) self_box: Arc<AtomicRefCell<Option<LayoutBox>>>,
|
||||
pub(super) self_box: ArcRefCell<Option<LayoutBox>>,
|
||||
pub(super) pseudo_elements: Option<Box<PseudoElementBoxes>>,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub(super) struct PseudoElementBoxes {
|
||||
pub before: Arc<AtomicRefCell<Option<LayoutBox>>>,
|
||||
pub after: Arc<AtomicRefCell<Option<LayoutBox>>>,
|
||||
pub before: ArcRefCell<Option<LayoutBox>>,
|
||||
pub after: ArcRefCell<Option<LayoutBox>>,
|
||||
}
|
||||
|
||||
pub(super) enum LayoutBox {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue