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
18 lines
477 B
Plaintext
18 lines
477 B
Plaintext
<div>
|
|
<style>
|
|
.h1 { font-size: 2em; margin: 1em; }
|
|
.p { margin: 0.5em 1em; color: #bcd8f5; font-weight: 900; }
|
|
</style>
|
|
<p class="h1">about:blank</p>
|
|
<p class="p">Welcome to Sky!</p>
|
|
<script>
|
|
import "dart:sky" as sky;
|
|
import "dart:sky.internals" as internals;
|
|
|
|
// Don't use dump-as-render-tree.sky, we want a test with no imports.
|
|
void main() {
|
|
sky.window.addEventListener('load', (_) =>
|
|
internals.notifyTestComplete(internals.renderTreeAsText()));
|
|
}
|
|
</script>
|
|
</div> |