mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
remove folly::hash from textlayoutmanager module (#39514)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39514 changelog: [internal] Reviewed By: cipolleschi Differential Revision: D49350125 fbshipit-source-id: 694533fbc4fb26cce8a1c8b8507d403f28c7840e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
acea828e7a
commit
4221cba12d
+2
-3
@@ -7,12 +7,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <folly/Hash.h>
|
||||
#include <react/renderer/attributedstring/AttributedString.h>
|
||||
#include <react/renderer/attributedstring/ParagraphAttributes.h>
|
||||
#include <react/renderer/core/LayoutConstraints.h>
|
||||
#include <react/utils/FloatComparison.h>
|
||||
#include <react/utils/SimpleThreadSafeCache.h>
|
||||
#include <react/utils/hash_combine.h>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -114,8 +114,7 @@ inline size_t textAttributesHashLayoutWise(
|
||||
const TextAttributes& textAttributes) {
|
||||
// Taking into account the same props as
|
||||
// `areTextAttributesEquivalentLayoutWise` mentions.
|
||||
return folly::hash::hash_combine(
|
||||
0,
|
||||
return facebook::react::hash_combine(
|
||||
textAttributes.fontFamily,
|
||||
textAttributes.fontSize,
|
||||
textAttributes.fontSizeMultiplier,
|
||||
|
||||
Reference in New Issue
Block a user