aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/fragments.rs
diff options
context:
space:
mode:
authorAnthony Ramine <nox@nox.paris>2019-09-09 17:21:26 +0200
committerAnthony Ramine <nox@nox.paris>2019-09-11 10:36:30 +0200
commit4444c5a2adfec909e165497ca331c09e02ee54cc (patch)
treebc4fea59172122f5a08d6e8d231f5fe3cf616569 /components/layout_2020/fragments.rs
parent86904757e66285412de162483f3ba2a6db35403e (diff)
downloadservo-4444c5a2adfec909e165497ca331c09e02ee54cc.tar.gz
servo-4444c5a2adfec909e165497ca331c09e02ee54cc.zip
Import victor's layout system 🍷
Diffstat (limited to 'components/layout_2020/fragments.rs')
-rw-r--r--components/layout_2020/fragments.rs15
1 files changed, 12 insertions, 3 deletions
diff --git a/components/layout_2020/fragments.rs b/components/layout_2020/fragments.rs
index f2a4dcd2986..ceb2fdf7971 100644
--- a/components/layout_2020/fragments.rs
+++ b/components/layout_2020/fragments.rs
@@ -1,5 +1,14 @@
-use super::*;
-use crate::text::ShapedSegment;
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * 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::geom::flow_relative::{Rect, Sides};
+use crate::style_ext::{Direction, WritingMode};
+// use crate::text::ShapedSegment;
+use servo_arc::Arc;
+use style::properties::ComputedValues;
+use style::values::computed::Length;
+use style::Zero;
pub(crate) enum Fragment {
Box(BoxFragment),
@@ -45,7 +54,7 @@ pub(crate) struct AnonymousFragment {
pub(crate) struct TextFragment {
pub parent_style: Arc<ComputedValues>,
pub content_rect: Rect<Length>,
- pub text: ShapedSegment,
+ // pub text: ShapedSegment,
}
impl AnonymousFragment {