aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/construct.rs
diff options
context:
space:
mode:
authorMatt Brubeck <mbrubeck@limpet.net>2014-09-17 17:05:29 -0700
committerMatt Brubeck <mbrubeck@limpet.net>2014-09-17 17:05:29 -0700
commit8aeb90e8c34a6872cf418643fef40e67382737e2 (patch)
tree4f76787711d7b7ec68621c5321dbbf16507b2a78 /components/layout/construct.rs
parent75caade8287bbe9ee25a71bea01e3da6a1d3c1b5 (diff)
parent140b0007fd2af6bef476d20868431ad69906aec9 (diff)
downloadservo-8aeb90e8c34a6872cf418643fef40e67382737e2.tar.gz
servo-8aeb90e8c34a6872cf418643fef40e67382737e2.zip
Merge pull request #3395 from mbrubeck/doctest
Fix unit test failures. r=jdm
Diffstat (limited to 'components/layout/construct.rs')
-rw-r--r--components/layout/construct.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs
index 163aa338b47..81910a2d915 100644
--- a/components/layout/construct.rs
+++ b/components/layout/construct.rs
@@ -109,14 +109,17 @@ pub struct InlineFragmentsConstructionResult {
/// Represents an {ib} split that has not yet found the containing block that it belongs to. This
/// is somewhat tricky. An example may be helpful. For this DOM fragment:
///
+/// ```html
/// <span>
/// A
/// <div>B</div>
/// C
/// </span>
+/// ```
///
/// The resulting `ConstructionItem` for the outer `span` will be:
///
+/// ```ignore
/// InlineFragmentsConstructionItem(Some(~[
/// InlineBlockSplit {
/// predecessor_fragments: ~[
@@ -128,6 +131,7 @@ pub struct InlineFragmentsConstructionResult {
/// }),~[
/// C
/// ])
+/// ```
pub struct InlineBlockSplit {
/// The inline fragments that precede the flow.
pub predecessors: InlineFragments,