diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2013-05-06 15:46:12 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2013-05-06 15:46:12 -0700 |
commit | d374d6561de07ac8488dc7f85cccca33423314c0 (patch) | |
tree | ade7551db006ddb0a88afb96ff7dd969e4851350 | |
parent | 1d7a3f916d56220206d4f1b086a334917c009eb8 (diff) | |
download | servo-d374d6561de07ac8488dc7f85cccca33423314c0.tar.gz servo-d374d6561de07ac8488dc7f85cccca33423314c0.zip |
layout: Document the root flow.
-rw-r--r-- | src/servo/layout/flow.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/servo/layout/flow.rs b/src/servo/layout/flow.rs index a6ef3c36d5b..67e9dc31964 100644 --- a/src/servo/layout/flow.rs +++ b/src/servo/layout/flow.rs @@ -14,15 +14,18 @@ /// /// Currently, the important types of flows are: /// -/// * `BlockFlow`: a flow that establishes a block context. It has several child flows, each of +/// * `BlockFlow`: A flow that establishes a block context. It has several child flows, each of /// which are positioned according to block formatting context rules (CSS block boxes). Block /// flows also contain a single `GenericBox` to represent their rendered borders, padding, etc. /// (In the future, this render box may be folded into `BlockFlow` to save space.) /// -/// * `InlineFlow`: a flow that establishes an inline context. It has a flat list of child +/// * `InlineFlow`: A flow that establishes an inline context. It has a flat list of child /// boxes/flows that are subject to inline layout and line breaking and structs to represent /// line breaks and mapping to CSS boxes, for the purpose of handling `getClientRects()` and /// similar methods. +/// +/// * `RootFlow`: The flow at the root of the tree. This flow behaves like a `BlockFlow`, except +/// that stretches to the boundaries of the viewport. use dom::node::AbstractNode; use layout::block::{BlockFlowData, BlockLayout}; @@ -30,11 +33,10 @@ use layout::box::RenderBox; use layout::context::LayoutContext; use layout::debug::DebugMethods; use layout::display_list_builder::DisplayListBuilder; -use layout::inline::{InlineFlowData, InlineLayout}; -use layout::root::{RootFlowData, RootLayout}; +use layout::inline::{InlineFlowData}; +use layout::root::{RootFlowData}; use core::cell::Cell; -use core::ptr; use geom::point::Point2D; use geom::rect::Rect; use gfx::display_list::DisplayList; |