aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout/flow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/main/layout/flow.rs')
-rw-r--r--src/components/main/layout/flow.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/main/layout/flow.rs b/src/components/main/layout/flow.rs
index afa0f80b258..27d61f9dd84 100644
--- a/src/components/main/layout/flow.rs
+++ b/src/components/main/layout/flow.rs
@@ -111,6 +111,9 @@ pub trait FlowContext {
fail!("collapse_margins not yet implemented")
}
+ /// Marks this flow as the root flow. The default implementation is a no-op.
+ fn mark_as_root(&mut self) {}
+
/// Returns a debugging string describing this flow.
fn debug_str(&self) -> ~str {
~"???"
@@ -360,6 +363,7 @@ impl Iterator<@RenderBox> for BoxIterator {
}
impl FlowData {
+ #[inline]
pub fn new(id: int, node: AbstractNode<LayoutView>) -> FlowData {
FlowData {
node: node,