mirror of
https://github.com/servo/servo.git
synced 2025-06-28 11:03:39 +01:00
layout: Add a lifetime to LayoutNode
to prevent layout from stuffing
them into evil places.
This commit is contained in:
parent
ee9873bdb5
commit
c506e52c7c
8 changed files with 77 additions and 46 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue