servo/components/layout_2020
Patrick Walton 5b36d211b4 Add an implementation of the core float and clear placement logic in layout
2020, not yet wired to the rest of layout.

This commit implements an object that handles the 10 rules in CSS 2.1:

https://www.w3.org/TR/CSS2/visuren.html#float-position

The implementation strategy is that of a persistent balanced binary search tree
of float bands. Binary search trees are commonly used for implementing float
positioning; e.g. by WebKit.  Persistence enables each object that interacts
with floats to efficiently contain a snapshot of the float list at the time
that object was laid out. That way, incremental layout can invalidate and start
reflow at any point in a containing block.

This commit features extensive use of
[QuickCheck](https://github.com/BurntSushi/quickcheck) to ensure that the rules
of the CSS specification are followed.

Because this is not yet connected to layout, floats will not actually be laid
out in Web pages yet.

Note that unit tests as set up in Servo currently require types that they
access to be public. Therefore, some internal layout 2020 types that were
previously private have been made public. This is somewhat unfortunate.

Part of #25167.
2020-07-20 12:42:34 -07:00
..
display_list Implement visibility for layout_2020 2020-06-14 00:31:37 +02:00
flexbox Manage side effects when redoing layout for align-self: stretch flex item 2020-06-23 10:26:24 +02:00
flow Add an implementation of the core float and clear placement logic in layout 2020-07-20 12:42:34 -07:00
tests Add an implementation of the core float and clear placement logic in layout 2020-07-20 12:42:34 -07:00
Cargo.toml Add an implementation of the core float and clear placement logic in layout 2020-07-20 12:42:34 -07:00
cell.rs Implement Default for ArcRefCell 2020-03-17 11:15:17 -07:00
context.rs Implement cross origin resource policy check 2020-05-08 19:15:24 +02:00
data.rs Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutData 2020-04-06 23:06:13 +02:00
dom_traversal.rs Bump rust to 1.46.0-nightly (a8cf39911 2020-06-21) 2020-06-23 19:13:36 +02:00
element_data.rs Flex items in the box tree 2020-06-04 13:19:53 +02:00
formatting_contexts.rs First pass at implementing the Flex Layout Algorithm 2020-06-23 00:41:27 +02:00
fragments.rs layout_2020: Tag fragments with their pseudo content type 2020-06-06 17:25:08 +02:00
geom.rs Add an implementation of the core float and clear placement logic in layout 2020-07-20 12:42:34 -07:00
layout_debug.rs Rename BoxTreeRoot/FragmentTreeRoot to BoxTree/FragmentTree 2020-05-15 13:25:35 +02:00
lib.rs Add an implementation of the core float and clear placement logic in layout 2020-07-20 12:42:34 -07:00
opaque_node.rs Remove layout_2020::display_list, use WebRender display lists instead 2019-09-07 19:38:44 +02:00
positioned.rs Compute content sizes lazily in layout 2020 2020-06-18 14:11:02 +02:00
query.rs Fix ./mach build --release --with-layout-2020 2020-06-10 22:34:24 +05:30
replaced.rs Add WebGPU to Layout-2020 2020-06-14 11:05:36 +05:30
sizing.rs Parallelize BlockContainer::inline_content_sizes 2020-06-19 15:38:15 +02:00
style_ext.rs Use the writing mode of the containing block when accessing CSS properties 2020-06-10 09:03:18 +02:00
traversal.rs Remove postorder traversal from layout 2020 during styling 2020-04-06 12:40:05 +02:00
wrapper.rs Replace OpaqueStyleAndLayoutData by StyleAndOpaqueLayoutData 2020-04-06 23:06:13 +02:00