diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2020-03-13 19:47:00 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2020-03-17 11:15:17 -0700 |
commit | 9cb824e77ca1cea699358971f7568e869c1c4664 (patch) | |
tree | 581f9f329a6de51af60f678e6fd7755a5f89762c /components/layout_2020/element_data.rs | |
parent | 2ff776b241f847bff9053e08a8004b6c7edc48b0 (diff) | |
download | servo-9cb824e77ca1cea699358971f7568e869c1c4664.tar.gz servo-9cb824e77ca1cea699358971f7568e869c1c4664.zip |
Wrap `BlockLevelBox` and `InlineLevelBox` with `AtomicRefCell`
Diffstat (limited to 'components/layout_2020/element_data.rs')
-rw-r--r-- | components/layout_2020/element_data.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/layout_2020/element_data.rs b/components/layout_2020/element_data.rs index ccd48ac04e3..e8afab10bc7 100644 --- a/components/layout_2020/element_data.rs +++ b/components/layout_2020/element_data.rs @@ -2,6 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ +use crate::cell::ArcRefCell; use crate::flow::inline::InlineLevelBox; use crate::flow::BlockLevelBox; use atomic_refcell::AtomicRefCell; @@ -21,6 +22,6 @@ pub(super) struct PseudoElementBoxes { pub(super) enum LayoutBox { DisplayContents, - BlockLevel(Arc<BlockLevelBox>), - InlineLevel(Arc<InlineLevelBox>), + BlockLevel(ArcRefCell<BlockLevelBox>), + InlineLevel(ArcRefCell<InlineLevelBox>), } |