aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/flow/root.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2019-10-04 20:37:28 -0400
committerGitHub <noreply@github.com>2019-10-04 20:37:28 -0400
commit36f70f5ab183cacde6d68079d927dbaf63444f2a (patch)
tree2e1c129605991c333923d00aafb65e5cfc119aab /components/layout_2020/flow/root.rs
parentdb1750673c81de852a3bfd6ad79941f4622eab94 (diff)
parent1bb85ed05b36a63e2cf879aa307ba297d52d00cf (diff)
downloadservo-36f70f5ab183cacde6d68079d927dbaf63444f2a.tar.gz
servo-36f70f5ab183cacde6d68079d927dbaf63444f2a.zip
Auto merge of #24360 - servo:build-box-tree, r=SimonSapin
Call BoxTreeRoot::construct from layout_thread_2020 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24360) <!-- Reviewable:end -->
Diffstat (limited to 'components/layout_2020/flow/root.rs')
-rw-r--r--components/layout_2020/flow/root.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/components/layout_2020/flow/root.rs b/components/layout_2020/flow/root.rs
index b1a43ae28be..994ce29bb16 100644
--- a/components/layout_2020/flow/root.rs
+++ b/components/layout_2020/flow/root.rs
@@ -22,17 +22,7 @@ use style::properties::ComputedValues;
use style::values::computed::{Length, LengthOrAuto};
use style_traits::CSSPixel;
-// FIXME
-// impl crate::dom::Document {
-// pub(crate) fn layout(
-// &self,
-// viewport: crate::geom::Size<crate::geom::CssPx>,
-// ) -> Vec<Fragment> {
-// BoxTreeRoot::construct(self).layout(viewport)
-// }
-// }
-
-struct BoxTreeRoot(BlockFormattingContext);
+pub struct BoxTreeRoot(BlockFormattingContext);
impl BoxTreeRoot {
pub fn construct<'dom>(