mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rewrite flow construction to be incrementalizable and parallelizable.
This replaces flow construction with a strict bottom-up tree traversal, allowing for parallelism. Each step of the traversal creates a flow or a `ConstructionItem`, similar to how Gecko works. {ib} splits are handled by not creating `InlineFlow`s until the containing block is reached. This should be able to be incrementalized by storing the `Flow` from layout to layout, and performing fixups during flow construction and/or wiping containing blocks in a previous pass.
This commit is contained in:
parent
37f9427b6c
commit
155befe10d
24 changed files with 1259 additions and 889 deletions
20
src/test/html/inline-block-split-2.html
Normal file
20
src/test/html/inline-block-split-2.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Anonymous text interrupted by a block</title>
|
||||
<style>
|
||||
body { display: block }
|
||||
p { display: inline }
|
||||
span { display: block }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
This is anonymous text before the SPAN.
|
||||
<span>This is the content of SPAN.</span>
|
||||
This is anonymous text after the SPAN.
|
||||
</p>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue