layout: Add a lifetime to LayoutNode to prevent layout from stuffing

them into evil places.
This commit is contained in:
Patrick Walton 2013-12-17 10:08:01 -08:00
parent ee9873bdb5
commit c506e52c7c
8 changed files with 77 additions and 46 deletions

View file

@ -441,10 +441,11 @@ pub struct InlineFlow {
// these ranges are disjoint, and are the result of inline layout.
// also some metadata used for positioning lines
lines: ~[LineBox],
// vec of ranges into boxes that represent elements. These ranges
// must be well-nested, and are only related to the content of
// boxes (not lines). Ranges are only kept for non-leaf elements.
elems: ElementMapping
elems: ElementMapping,
}
impl InlineFlow {