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
50 lines
750 B
Plaintext
50 lines
750 B
Plaintext
<import src="../resources/dump-as-render-tree.sky" />
|
|
|
|
<style>
|
|
block, p, flex {
|
|
width: 100px;
|
|
height: 100px;
|
|
margin-bottom: 50px;
|
|
/* Make it a positioning root. */
|
|
transform: translate3d(0, 0, 0);
|
|
}
|
|
block { background: pink; }
|
|
p {
|
|
background: orange;
|
|
}
|
|
flex {
|
|
background: salmon;
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
spacer {
|
|
height: 30px;
|
|
width: 30px;
|
|
border: 5px solid purple;
|
|
background: papayawhip;
|
|
}
|
|
absolute {
|
|
position: absolute;
|
|
width: 20px;
|
|
height: 20px;
|
|
background: green;
|
|
}
|
|
</style>
|
|
<block>
|
|
<spacer />
|
|
<absolute />
|
|
<spacer />
|
|
</block>
|
|
|
|
<p>
|
|
<spacer />
|
|
<absolute />
|
|
<spacer />
|
|
</p>
|
|
|
|
<flex>
|
|
<spacer />
|
|
<absolute />
|
|
<spacer />
|
|
</flex>
|