Add more unit tests for rounding values to pixel grid #1776
Reference in New Issue
Block a user
No description provided.
Delete Branch "export-D67712673"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary:
Changelog:
[Internal] -
I was looking into some profiling results and noticed that Yoga has some quirky custom logic when it comes to rounding to the pixel grid, especially for the values that are halfway through.
There are already unit tests in place, but those cases weren't covered, so I am adding these extra corner cases here, to make sure they are covered in case that the actual rounding function may get modified (which it might make sense to, as it's currently can be more expensive than it could have been in some scenarios).
Differential Revision: D67712673
The latest updates on your projects. Learn more about Vercel for Git ↗︎
This pull request was exported from Phabricator. Differential Revision: D67712673
This pull request was exported from Phabricator. Differential Revision: D67712673
This pull request was exported from Phabricator. Differential Revision: D67712673
This pull request has been merged in facebook/yoga@9591210a7a.
Pull request closed