-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fabric: EmptyLayoutMetrics does not contain invalid values anymore
Summary: Before this change, fields of EmptyLayoutMetrics have some "invalid" values to allow us to compare equal them individually and get `false`. Turned out that having invalid values there might break some serialization layers, which is no good. This change fixes that and adds explicit check for EmptyLayoutMetrics before running a comparison of individual fields. Changelog: [Internal] Fabric-specific internal change. Reviewed By: mdvacca Differential Revision: D20324881 fbshipit-source-id: ab8e2a402f6bdfb393fc9b6789decb526fa94dfa
- Loading branch information
1 parent
85a4b0f
commit 0d6d586
Showing
2 changed files
with
8 additions
and
25 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