Fabric ShadowTree (and co) was moved to mounting module

Summary: Because it's kinda more logical and we will rely on this in comming diffs.

Reviewed By: mdvacca

Differential Revision: D14587124

fbshipit-source-id: 94ae9410b4ffeffd0fcb4da4a0518f0bb0d2ba63
This commit is contained in:
Valentin Shergin
2019-04-01 10:47:04 -07:00
committed by Facebook Github Bot
parent 45bd2b514b
commit 3e4a8e35fe
14 changed files with 19 additions and 11 deletions

View File

@@ -29,6 +29,7 @@ rn_xplat_cxx_library(
react_native_xplat_target("config:config"),
react_native_xplat_target("fabric/uimanager:uimanager"),
react_native_xplat_target("fabric/components/scrollview:scrollview"),
react_native_xplat_target("utils:utils"),
react_native_target("jni/react/jni:jni"),
"fbsource//xplat/fbsystrace:fbsystrace",
"fbsource//xplat/folly:molly",

View File

@@ -18,8 +18,8 @@
#include <react/uimanager/ContextContainer.h>
#include <react/uimanager/Scheduler.h>
#include <react/uimanager/SchedulerDelegate.h>
#include <react/uimanager/TimeUtils.h>
#include <react/uimanager/primitives.h>
#include <react/utils/TimeUtils.h>
using namespace facebook::jni;
using namespace facebook::jsi;

View File

@@ -55,8 +55,11 @@ rn_xplat_cxx_library(
"fbsource//xplat/folly:molly",
"fbsource//xplat/third-party/glog:glog",
react_native_xplat_target("better:better"),
react_native_xplat_target("fabric/components/root:root"),
react_native_xplat_target("fabric/components/view:view"),
react_native_xplat_target("fabric/core:core"),
react_native_xplat_target("fabric/debug:debug"),
react_native_xplat_target("utils:utils"),
],
)

View File

@@ -11,7 +11,7 @@
#include <react/debug/SystraceSection.h>
#include <react/mounting/Differentiator.h>
#include <react/mounting/ShadowViewMutation.h>
#include <react/uimanager/TimeUtils.h>
#include <react/utils/TimeUtils.h>
#include "ShadowTreeDelegate.h"
@@ -96,6 +96,10 @@ ShadowTree::ShadowTree(
/* .props = */ props,
/* .eventEmitter = */ noopEventEmitter,
}));
#ifdef RN_SHADOW_TREE_INTROSPECTION
stubViewTree_ = stubViewTreeFromShadowNode(*rootShadowNode_);
#endif
}
ShadowTree::~ShadowTree() {

View File

@@ -13,8 +13,8 @@
#include <react/core/LayoutConstraints.h>
#include <react/core/ReactPrimitives.h>
#include <react/core/ShadowNode.h>
#include <react/mounting/ShadowTreeDelegate.h>
#include <react/mounting/ShadowViewMutation.h>
#include <react/uimanager/ShadowTreeDelegate.h>
namespace facebook {
namespace react {

View File

@@ -8,7 +8,7 @@
#include <better/mutex.h>
#include <react/core/ReactPrimitives.h>
#include <react/uimanager/ShadowTree.h>
#include <react/mounting/ShadowTree.h>
namespace facebook {
namespace react {

View File

@@ -57,11 +57,11 @@ rn_xplat_cxx_library(
"fbsource//xplat/jsi:jsi",
"fbsource//xplat/third-party/glog:glog",
react_native_xplat_target("config:config"),
react_native_xplat_target("fabric/components/root:root"),
react_native_xplat_target("fabric/components/view:view"),
react_native_xplat_target("fabric/mounting:mounting"),
react_native_xplat_target("fabric/core:core"),
react_native_xplat_target("fabric/debug:debug"),
react_native_xplat_target("utils:utils"),
],
)

View File

@@ -11,10 +11,10 @@
#include <react/core/LayoutContext.h>
#include <react/debug/SystraceSection.h>
#include <react/uimanager/ComponentDescriptorRegistry.h>
#include <react/uimanager/TimeUtils.h>
#include <react/uimanager/UIManager.h>
#include <react/uimanager/UIManagerBinding.h>
#include <react/uimanager/UITemplateProcessor.h>
#include <react/utils/TimeUtils.h>
namespace facebook {
namespace react {

View File

@@ -12,13 +12,13 @@
#include <react/config/ReactNativeConfig.h>
#include <react/core/ComponentDescriptor.h>
#include <react/core/LayoutConstraints.h>
#include <react/mounting/ShadowTree.h>
#include <react/mounting/ShadowTreeDelegate.h>
#include <react/mounting/ShadowTreeRegistry.h>
#include <react/uimanager/ComponentDescriptorFactory.h>
#include <react/uimanager/ComponentDescriptorRegistry.h>
#include <react/uimanager/ContextContainer.h>
#include <react/uimanager/SchedulerDelegate.h>
#include <react/uimanager/ShadowTree.h>
#include <react/uimanager/ShadowTreeDelegate.h>
#include <react/uimanager/ShadowTreeRegistry.h>
#include <react/uimanager/UIManagerBinding.h>
#include <react/uimanager/UIManagerDelegate.h>
#include <react/uimanager/primitives.h>

View File

@@ -4,7 +4,7 @@
#include <react/core/ShadowNodeFragment.h>
#include <react/debug/SystraceSection.h>
#include <react/uimanager/TimeUtils.h>
#include <react/utils/TimeUtils.h>
namespace facebook {
namespace react {

View File

@@ -8,8 +8,8 @@
#include <react/core/ShadowNode.h>
#include <react/core/StateData.h>
#include <react/mounting/ShadowTreeRegistry.h>
#include <react/uimanager/ComponentDescriptorRegistry.h>
#include <react/uimanager/ShadowTreeRegistry.h>
#include <react/uimanager/UIManagerDelegate.h>
namespace facebook {