aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/main/layout
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/main/layout')
-rw-r--r--src/components/main/layout/construct.rs6
-rw-r--r--src/components/main/layout/flow.rs4
-rw-r--r--src/components/main/layout/inline.rs2
-rw-r--r--src/components/main/layout/model.rs2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs
index 398f915197b..82026d28bce 100644
--- a/src/components/main/layout/construct.rs
+++ b/src/components/main/layout/construct.rs
@@ -98,7 +98,7 @@ impl ConstructionResult {
/// Represents the output of flow construction for a DOM node that has not yet resulted in a
/// complete flow. Construction items bubble up the tree until they find a `Flow` to be
/// attached to.
-enum ConstructionItem {
+pub enum ConstructionItem {
/// Inline boxes and associated {ib} splits that have not yet found flows.
InlineBoxesConstructionItem(InlineBoxesConstructionResult),
/// Potentially ignorable whitespace.
@@ -124,7 +124,7 @@ impl ConstructionItem {
}
/// Represents inline boxes and {ib} splits that are bubbling up from an inline.
-struct InlineBoxesConstructionResult {
+pub struct InlineBoxesConstructionResult {
/// Any {ib} splits that we're bubbling up.
///
/// TODO(pcwalton): Small vector optimization.
@@ -159,7 +159,7 @@ struct InlineBoxesConstructionResult {
/// }),~[
/// C
/// ])
-struct InlineBlockSplit {
+pub struct InlineBlockSplit {
/// The inline boxes that precede the flow.
///
/// TODO(pcwalton): Small vector optimization.
diff --git a/src/components/main/layout/flow.rs b/src/components/main/layout/flow.rs
index 2fd6b310d86..1e5ab33ab37 100644
--- a/src/components/main/layout/flow.rs
+++ b/src/components/main/layout/flow.rs
@@ -718,9 +718,9 @@ impl Descendants {
pub type AbsDescendants = Descendants;
-type DescendantIter<'a> = MutItems<'a, Rawlink>;
+pub type DescendantIter<'a> = MutItems<'a, Rawlink>;
-type DescendantOffsetIter<'a> = Zip<MutItems<'a, Rawlink>, MutItems<'a, Au>>;
+pub type DescendantOffsetIter<'a> = Zip<MutItems<'a, Rawlink>, MutItems<'a, Au>>;
/// Data common to all flows.
pub struct BaseFlow {
diff --git a/src/components/main/layout/inline.rs b/src/components/main/layout/inline.rs
index 940d2b50d95..a504031b69b 100644
--- a/src/components/main/layout/inline.rs
+++ b/src/components/main/layout/inline.rs
@@ -50,7 +50,7 @@ use style::computed_values::{text_align, vertical_align, white_space};
/// with a float or a horizontal wall of the containing block. The top
/// left corner of the green zone is the same as that of the line, but
/// the green zone can be taller and wider than the line itself.
-struct LineBox {
+pub struct LineBox {
range: Range,
bounds: Rect<Au>,
green_zone: Size2D<Au>
diff --git a/src/components/main/layout/model.rs b/src/components/main/layout/model.rs
index 098e238a252..fac209ac770 100644
--- a/src/components/main/layout/model.rs
+++ b/src/components/main/layout/model.rs
@@ -231,7 +231,7 @@ impl MarginCollapseInfo {
}
}
-enum MarginCollapseState {
+pub enum MarginCollapseState {
AccumulatingCollapsibleTopMargin,
AccumulatingMarginIn,
}