Call BoxTreeRoot::construct from layout_thread_2020

This commit is contained in:
Anthony Ramine 2019-10-03 18:08:16 +02:00
parent 9706cd497d
commit ec74204fa0
12 changed files with 51 additions and 42 deletions

View file

@ -17,7 +17,7 @@ use style::properties::ComputedValues;
use style::selector_parser::PseudoElement;
#[derive(Clone, Copy)]
pub(super) enum WhichPseudoElement {
pub enum WhichPseudoElement {
Before,
After,
}
@ -35,12 +35,12 @@ pub(super) enum Contents<Node> {
OfPseudoElement(Vec<PseudoElementContentItem>),
}
pub(super) enum NonReplacedContents<Node> {
pub enum NonReplacedContents<Node> {
OfElement(Node),
OfPseudoElement(Vec<PseudoElementContentItem>),
}
pub(super) enum PseudoElementContentItem {
pub enum PseudoElementContentItem {
Text(String),
Replaced(ReplacedContent),
}
@ -252,7 +252,7 @@ where
unimplemented!()
}
pub(super) struct BoxSlot<'dom> {
pub struct BoxSlot<'dom> {
slot: Option<Arc<AtomicRefCell<Option<LayoutBox>>>>,
marker: marker<&'dom ()>,
}
@ -284,7 +284,7 @@ impl Drop for BoxSlot<'_> {
}
}
pub(crate) trait NodeExt<'dom>: 'dom + Copy + LayoutNode + Send + Sync {
pub trait NodeExt<'dom>: 'dom + Copy + LayoutNode + Send + Sync {
fn is_element(self) -> bool;
fn as_text(self) -> Option<String>;
fn first_child(self) -> Option<Self>;