servo/components/layout_2020
Nico Burns 6cbd89dbb0
Layout: Implement CSS Grid using taffy (#32619)
* Add layout.grid.enabled pref

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Add taffy dependency

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Import taffy <-> stylo conversion code from taffy_stylo crate

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Add `Grid` variant to DisplayInside

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Implement CSS Grid using Taffy

Signed-off-by: Nico Burns <nico@nicoburns.com>

Import full stylo_taffy crate

Signed-off-by: Nico Burns <nico@nicoburns.com>

Squashed PR feedback changes

Deduplicate is_document_only_whitespace

Signed-off-by: Nico Burns <nico@nicoburns.com>

Import taffy::AvailableSpace

Signed-off-by: Nico Burns <nico@nicoburns.com>

Rename FlexContext to TaffyContainerContext

Signed-off-by: Nico Burns <nico@nicoburns.com>

Eliminate references to flexbox in taffy/layout module

Signed-off-by: Nico Burns <nico@nicoburns.com>

Use constructors for geom types

Signed-off-by: Nico Burns <nico@nicoburns.com>

Remove comment about abspos elements splitting contiguous text runs

Signed-off-by: Nico Burns <nico@nicoburns.com>

Remove reference to flexbox in taffy/construct

Signed-off-by: Nico Burns <nico@nicoburns.com>

Deduplicate construction of flexbox/grid containers

Signed-off-by: Nico Burns <nico@nicoburns.com>

Make anonymous text runs InFlow

Signed-off-by: Nico Burns <nico@nicoburns.com>

Remove commented code

Signed-off-by: Nico Burns <nico@nicoburns.com>

Update comments

Signed-off-by: Nico Burns <nico@nicoburns.com>

Inline/vendor the stylo/taffy interop code

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Update test expectations

Signed-off-by: Nico Burns <nico@nicoburns.com>

* Fix nits from PR review

Signed-off-by: Nico Burns <nico@nicoburns.com>

---------

Signed-off-by: Nico Burns <nico@nicoburns.com>
2024-11-21 20:21:01 +00:00
..
display_list Set all tracing spans to trace level for now (#34256) 2024-11-19 02:53:43 +00:00
flexbox Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
flow Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
fragment_tree Add BoxFragment::is_inline_box() (#34233) 2024-11-12 15:50:20 +00:00
table Remove the containing_block parameter from TableLayout::layout_caption (#34297) 2024-11-20 16:24:00 +00:00
taffy Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
tests layout: Right-to-left support for other layout modes (#33375) 2024-09-11 13:40:11 +00:00
Cargo.toml Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
cell.rs Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
construct_modern.rs Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
context.rs fonts: Simplify FontContext in two ways that affect the unit test (#33541) 2024-09-25 20:15:47 +00:00
dom.rs Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
dom_traversal.rs Replace .map_or(false with Option::is_some_and (#33468) 2024-09-16 10:03:52 +00:00
formatting_contexts.rs Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
geom.rs Use LazyCells instead of callbacks when resolving size keywords (#34211) 2024-11-11 16:26:20 +00:00
layout_debug.rs clippy: Fix warnings in shared and config, fonts, layout, and layout_2020 components (#32674) 2024-07-04 14:18:58 +00:00
lib.rs Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
lists.rs layout: Add a basic support for list-style-position: outside (#32114) 2024-04-22 14:23:35 +00:00
positioned.rs Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
query.rs Fix offsetLeft/offsetTop to match major browsers (#32761) 2024-11-16 15:28:38 +00:00
replaced.rs Fix min/max-content block size of replaced element (#34284) 2024-11-18 22:04:57 +00:00
sizing.rs Fix inline content sizes of intrinsic element with indefinite block size (#34152) 2024-11-11 11:38:19 +00:00
style_ext.rs Layout: Implement CSS Grid using taffy (#32619) 2024-11-21 20:21:01 +00:00
traversal.rs script: Split style and layout data in DOM nodes (#31985) 2024-04-04 07:56:51 +00:00