-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Display::Contents variant to Display enum Modify Taffy children iterator to recurse into Display::Contents nodes Add `Display::Contents` support to the gentest script Add basic tests for `Display::Contents` Fix clippy lints and document TaffyChildIter next method Fix Yoga benchmark helpers smallvec WIP Precompute display:contents vec Remove smallvec + lazy display:contents iter implementation Remove TaffySliceIter Fix clippy lints Use RefMut::map to simplify iterator Reuse Vec in children iterator cache Use a struct for the children cache Change order of find_child_recursive parameters Add Display::Contents to the release notes Fix child and child_count methods to use resolved children
- Loading branch information
Showing
15 changed files
with
515 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script src="../../scripts/gentest/test_helper.js"></script> | ||
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css"> | ||
<title> | ||
Test description | ||
</title> | ||
</head> | ||
<body> | ||
|
||
<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;"> | ||
<div style="width: 30px;"></div> | ||
<div style="width: 30px;"></div> | ||
<div style="width: 30px;"></div> | ||
<div style="display: contents;"> | ||
<div style="width: 30px;"></div> | ||
<div style="width: 30px;"></div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script src="../../scripts/gentest/test_helper.js"></script> | ||
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css"> | ||
<title> | ||
Test description | ||
</title> | ||
</head> | ||
<body> | ||
|
||
<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;"> | ||
<div style="width: 30px;"></div> | ||
<div style="width: 30px;"></div> | ||
<div style="width: 30px;"></div> | ||
<div style="display: contents;"> | ||
<div style="display: contents;"> | ||
<div style="width: 30px;"></div> | ||
<div style="width: 30px;"></div> | ||
</div> | ||
<div style="width: 30px;"></div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<script src="../../scripts/gentest/test_helper.js"></script> | ||
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css"> | ||
<title> | ||
Test description | ||
</title> | ||
</head> | ||
<body> | ||
|
||
<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;"> | ||
<div style="width: 30px;"></div> | ||
<div style="width: 30px;"></div> | ||
<div style="display: contents;"> | ||
<div style="width: 30px;"></div> | ||
<div style="display: contents;"> | ||
<div style="display: contents;"> | ||
<div style="width: 30px;"></div> | ||
<div style="width: 30px;"></div> | ||
</div> | ||
<div style="width: 30px;"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.