diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2013-12-17 10:08:01 -0800 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2013-12-17 18:07:41 -0800 |
commit | c506e52c7c6e80ea875e9d1ce95597cf3bc8bcc1 (patch) | |
tree | e2d427594d58d12abba49ac77a811c1229f5222f /src/components/main/layout/inline.rs | |
parent | ee9873bdb5563fe6119d2a8365f814a281ac73c6 (diff) | |
download | servo-c506e52c7c6e80ea875e9d1ce95597cf3bc8bcc1.tar.gz servo-c506e52c7c6e80ea875e9d1ce95597cf3bc8bcc1.zip |
layout: Add a lifetime to `LayoutNode` to prevent layout from stuffing
them into evil places.
Diffstat (limited to 'src/components/main/layout/inline.rs')
-rw-r--r-- | src/components/main/layout/inline.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/main/layout/inline.rs b/src/components/main/layout/inline.rs index c270d90df60..5d5022eaf30 100644 --- a/src/components/main/layout/inline.rs +++ b/src/components/main/layout/inline.rs @@ -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 { |