mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
use react::hash_combine instead of folly::hash_combine (#41477)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/41477 changelog: [internal] Reviewed By: cipolleschi Differential Revision: D51304535 fbshipit-source-id: d7de89c50e30a936b982c5dc568f3516ab140266
This commit is contained in:
committed by
Facebook GitHub Bot
parent
5948ab7515
commit
3e3a3dbe28
+2
-4
@@ -146,10 +146,8 @@ inline size_t textAttributesHashLayoutWise(
|
||||
// Here we are not taking `isAttachment` and `layoutMetrics` into account
|
||||
// because they are logically interdependent and this can break an invariant
|
||||
// between hash and equivalence functions (and cause cache misses).
|
||||
return folly::hash::hash_combine(
|
||||
0,
|
||||
fragment.string,
|
||||
textAttributesHashLayoutWise(fragment.textAttributes));
|
||||
return facebook::react::hash_combine(
|
||||
fragment.string, textAttributesHashLayoutWise(fragment.textAttributes));
|
||||
}
|
||||
|
||||
inline bool areAttributedStringsEquivalentLayoutWise(
|
||||
|
||||
Reference in New Issue
Block a user