mirror of
https://github.com/encounter/engine.git
synced 2026-03-30 11:09:55 -07:00
b9f182a6bd
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
The empty, cr, and utf16 tests don't import the test framework so they currently hang until timeout. Really they should just check that nothing crashes. For now they are disabled.
We should also test the following (each line is its own test):
<
<!
<!-
<!--
<!---
<!----
<!---->
<!----->
<a
<aa
<a
<a a
<a a=
<a a=&
<a a=&#
<a a=&#x
<a a=
<a a=
<a a=
<a a=
<a a=&a
<a a=&a;
<a a=&;
<a a='
<a a="
<a a=a
<a>
<a >
<a a>
<a a=>
<a a=&>
<a a=&#>
<a a=&#x>
<a a=>
<a a=>
<a a=>
<a a=>
<a a=&a>
<a a=&a;>
<a a=&;>
<a a=''>
<a a="">
<a a=a>
<a a >
<a a= >
<a a=& >
<a a=&# >
<a a=&#x >
<a a= >
<a a= >
<a a= >
<a a= >
<a a=&a >
<a a=&a; >
<a a=&; >
<a a='' >
<a a="" >
<a a=a >
</a
</aa
</a
</a a
</a a=
</a a=&
</a a=&#
</a a=&#x
</a a=
</a a=
</a a=
</a a=
</a a=&a
</a a=&a;
</a a=&;
</a a='
</a a="
</a a=a
</a>
</a >
</a a>
</a a=>
</a a=&>
</a a=&#>
</a a=&#x>
</a a=>
</a a=>
</a a=>
</a a=>
</a a=&a>
</a a=&a;>
</a a=&;>
</a a=''>
</a a="">
</a a=a>
</a a >
</a a= >
</a a=& >
</a a=&# >
</a a=&#x >
</a a= >
</a a= >
</a a= >
</a a= >
</a a=&a >
</a a=&a; >
</a a=&; >
</a a='' >
</a a="" >
</a a=a >
a
&
&#
&#x




&a
&a;
&;
We should also test:
- multiple elements per page
- signature stuff