aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/lib.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2019-07-23 15:44:56 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2019-07-31 17:09:16 +0200
commit4846d76e82e2d60875472fb8ea375e22d40a0800 (patch)
tree073ff8aa7ec1c65ad51c2b08bfe55007c6f442e7 /components/layout_2020/lib.rs
parent87e7e3d429f2122ffa9ef016ba5659a3b21be91b (diff)
downloadservo-4846d76e82e2d60875472fb8ea375e22d40a0800.tar.gz
servo-4846d76e82e2d60875472fb8ea375e22d40a0800.zip
Make layout_2020 be layout_2013
Diffstat (limited to 'components/layout_2020/lib.rs')
-rw-r--r--components/layout_2020/lib.rs60
1 files changed, 60 insertions, 0 deletions
diff --git a/components/layout_2020/lib.rs b/components/layout_2020/lib.rs
index daa3e8897c2..f8afdc79190 100644
--- a/components/layout_2020/lib.rs
+++ b/components/layout_2020/lib.rs
@@ -1,3 +1,63 @@
/* 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/. */
+
+#![deny(unsafe_code)]
+
+#[macro_use]
+extern crate bitflags;
+#[macro_use]
+extern crate html5ever;
+#[macro_use]
+extern crate log;
+#[macro_use]
+extern crate range;
+#[macro_use]
+extern crate serde;
+
+#[macro_use]
+pub mod layout_debug;
+
+pub mod animation;
+mod block;
+pub mod construct;
+pub mod context;
+pub mod data;
+pub mod display_list;
+mod flex;
+mod floats;
+pub mod flow;
+mod flow_list;
+pub mod flow_ref;
+mod fragment;
+mod generated_content;
+pub mod incremental;
+mod inline;
+mod linked_list;
+mod list_item;
+mod model;
+mod multicol;
+pub mod opaque_node;
+pub mod parallel;
+mod persistent_list;
+pub mod query;
+pub mod sequential;
+mod table;
+mod table_caption;
+mod table_cell;
+mod table_colgroup;
+mod table_row;
+mod table_rowgroup;
+mod table_wrapper;
+mod text;
+pub mod traversal;
+pub mod wrapper;
+
+// For unit tests:
+pub use self::data::LayoutData;
+pub use crate::fragment::Fragment;
+pub use crate::fragment::SpecificFragmentInfo;
+
+// We can't use servo_arc for everything in layout, because the Flow stuff uses
+// weak references.
+use servo_arc::Arc as ServoArc;