mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
We now only preserve the whitespace inside a <t> element inside the parser. This removes the known n^2 from reattaching whitespace which should make parsing and appending nodes faster. I also removed the dead WhitespaceMode code from the parser, and made the dom-seralizer.sky auto indent the markup so the test output would be readable. R=abarth@chromium.org Review URL: https://codereview.chromium.org/867963006
33 lines
413 B
Plaintext
33 lines
413 B
Plaintext
<sky>
|
|
<import src="../resources/dump-as-markup.sky"></import>
|
|
|
|
<t>
|
|
<span>
|
|
A
|
|
<div>
|
|
<span></span>
|
|
|
|
<!-- All whitespace in a subtree should be kept under <t>. -->
|
|
|
|
|
|
<span></span>
|
|
</div>
|
|
</span>
|
|
|
|
|
|
<!-- This whitespace should be preserved. -->
|
|
|
|
<span>B</span>
|
|
</t>
|
|
|
|
<div>
|
|
<span>
|
|
A
|
|
</span>
|
|
|
|
<!-- This whitespace should be ignored. -->
|
|
|
|
<span>B</span>
|
|
</div>
|
|
|
|
</sky> |