Skip to content

Commit 08eb766

Browse files
committed
Expose cleanupContentsNodesRecursively for backport
Backport prerequisite: make cleanupContentsNodesRecursively externally linkable and declare it in CalculateLayout.h so AbsoluteLayout.cpp can call it. This mirrors the relevant slice of #55876 (26cef64), which is not present on this branch, and is required before applying #56422 and #57103.
1 parent 4df7f7c commit 08eb766

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ static void zeroOutLayoutRecursively(yoga::Node* const node) {
480480
}
481481
}
482482

483-
static void cleanupContentsNodesRecursively(yoga::Node* const node) {
483+
void cleanupContentsNodesRecursively(yoga::Node* const node) {
484484
if (node->hasContentsChildren()) [[unlikely]] {
485485
node->cloneContentsChildrenIfNeeded();
486486
for (auto child : node->getChildren()) {

packages/react-native/ReactCommon/yoga/yoga/algorithm/CalculateLayout.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ bool calculateLayoutInternal(
3535
uint32_t depth,
3636
uint32_t generationCount);
3737

38+
void cleanupContentsNodesRecursively(yoga::Node* const node);
39+
3840
} // namespace facebook::yoga

0 commit comments

Comments
 (0)