mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Call BoxTreeRoot::construct from layout_thread_2020
This commit is contained in:
parent
9706cd497d
commit
ec74204fa0
12 changed files with 51 additions and 42 deletions
|
@ -8,7 +8,7 @@ use atomic_refcell::AtomicRefCell;
|
|||
use servo_arc::Arc;
|
||||
|
||||
#[derive(Default)]
|
||||
pub(crate) struct LayoutDataForElement {
|
||||
pub struct LayoutDataForElement {
|
||||
pub(super) self_box: Arc<AtomicRefCell<Option<LayoutBox>>>,
|
||||
pub(super) pseudo_elements: Option<Box<PseudoElementBoxes>>,
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ pub(super) struct PseudoElementBoxes {
|
|||
pub after: Arc<AtomicRefCell<Option<LayoutBox>>>,
|
||||
}
|
||||
|
||||
pub(super) enum LayoutBox {
|
||||
pub enum LayoutBox {
|
||||
DisplayContents,
|
||||
BlockLevel(Arc<BlockLevelBox>),
|
||||
InlineLevel(Arc<InlineLevelBox>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue