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
16 lines
545 B
Plaintext
16 lines
545 B
Plaintext
<sky>
|
|
<import src="../resources/dump-as-render-tree.sky"/>
|
|
<iframe id="removeMe" src="text.sky">Should not render</iframe>
|
|
<p>This is an <iframe style="border-style: solid; border-width: 20px" src="abarth.sky">iframe</iframe> element.</p>
|
|
<p style="height: 200px">Placeholder.</p>
|
|
<p>Small iframe should render <iframe style="height: 40px" src="abarth.sky">iframe</iframe> correctly.</p>
|
|
|
|
<script>
|
|
import "dart:sky";
|
|
|
|
void main() {
|
|
document.getElementById("removeMe").remove();
|
|
}
|
|
</script>
|
|
</sky>
|