mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-08 09:12:05 +08:00
css layout systrace markers
Reviewed By: astreet Differential Revision: D2668741 fb-gh-sync-id: 043ff740f8cc7c687a79c50c933db99ed67b60e4
This commit is contained in:
committed by
facebook-github-bot-7
parent
c8fd9f7588
commit
2a9a5fc9e8
@@ -768,7 +768,15 @@ public class UIManagerModule extends ReactContextBaseJavaModule implements
|
||||
int tag = mShadowNodeRegistry.getRootTag(i);
|
||||
ReactShadowNode cssRoot = mShadowNodeRegistry.getNode(tag);
|
||||
notifyOnBeforeLayoutRecursive(cssRoot);
|
||||
cssRoot.calculateLayout(mLayoutContext);
|
||||
|
||||
SystraceMessage.beginSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE, "cssRoot.calculateLayout")
|
||||
.arg("rootTag", tag)
|
||||
.flush();
|
||||
try {
|
||||
cssRoot.calculateLayout(mLayoutContext);
|
||||
} finally {
|
||||
Systrace.endSection(Systrace.TRACE_TAG_REACT_JAVA_BRIDGE);
|
||||
}
|
||||
applyUpdatesRecursive(cssRoot, 0f, 0f);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user