mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Text can only only inside paragraphs and inlines. This patch makes it so we stop putting such text nodes in the render tree at all if their parent is not a paragraph or an inline. This is the final step in making it so that we don't create anonymous renderers, which fixes a crash in the new custom layout code. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/1077473002
22 lines
1.2 KiB
Plaintext
22 lines
1.2 KiB
Plaintext
layer at (0,0) size 800x600
|
|
RenderView {#document} at (0,0) size 800x600
|
|
layer at (0,0) size 100x100
|
|
RenderFlexibleBox {block} at (0,0) size 100x100 [bgcolor=#FFC0CB]
|
|
RenderFlexibleBox {spacer} at (0,0) size 40x40 [bgcolor=#FFEFD5] [border: (5px solid #800080)]
|
|
RenderFlexibleBox {spacer} at (0,40) size 40x40 [bgcolor=#FFEFD5] [border: (5px solid #800080)]
|
|
layer at (0,0) size 20x20
|
|
RenderFlexibleBox {absolute} at (0,0) size 20x20 [bgcolor=#008000]
|
|
layer at (0,150) size 100x100
|
|
RenderParagraph {p} at (0,150) size 100x100 [bgcolor=#FFA500]
|
|
RenderFlexibleBox {spacer} at (0,0) size 40x40 [bgcolor=#FFEFD5] [border: (5px solid #800080)]
|
|
RenderFlexibleBox {spacer} at (40,0) size 40x40 [bgcolor=#FFEFD5] [border: (5px solid #800080)]
|
|
layer at (0,150) size 20x20
|
|
RenderFlexibleBox {absolute} at (0,0) size 20x20 [bgcolor=#008000]
|
|
layer at (0,300) size 100x100
|
|
RenderFlexibleBox {flex} at (0,300) size 100x100 [bgcolor=#FA8072]
|
|
RenderFlexibleBox {spacer} at (0,0) size 40x40 [bgcolor=#FFEFD5] [border: (5px solid #800080)]
|
|
RenderFlexibleBox {spacer} at (40,0) size 40x40 [bgcolor=#FFEFD5] [border: (5px solid #800080)]
|
|
layer at (0,300) size 20x20
|
|
RenderFlexibleBox {absolute} at (0,0) size 20x20 [bgcolor=#008000]
|
|
|