Revert "chore: Bump taffy to 0.5.2 (#18729)" (#19189)

This reverts commit a99750fd35.

@huacnlee found that commit to have a bad impact on perf and triaged it
for us in
https://github.com/zed-industries/zed/pull/18729#issuecomment-2410445980
Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-10-14 15:19:10 +02:00 committed by GitHub
parent 6ec00cdb06
commit 792f583b97
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -103,7 +103,7 @@ smallvec.workspace = true
smol.workspace = true
strum.workspace = true
sum_tree.workspace = true
taffy = "0.5"
taffy = "0.4.3"
thiserror.workspace = true
util.workspace = true
uuid.workspace = true

View file

@ -174,7 +174,7 @@ impl TaffyLayoutEngine {
.compute_layout_with_measure(
id.into(),
available_space.into(),
|known_dimensions, available_space, _node_id, node_context, _style| {
|known_dimensions, available_space, _id, node_context| {
let Some(node_context) = node_context else {
return taffy::geometry::Size::default();
};