Add extra logging information for ReactShadowNode
Reviewed By: achen1 Differential Revision: D8020040 fbshipit-source-id: c0606eeeb14e89e52f2a0b5537418d88387e4e0a
This commit is contained in:
parent
86b3865bfe
commit
b1d646a7cd
|
@ -110,6 +110,7 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
|
|||
private final float[] mPadding = new float[Spacing.ALL + 1];
|
||||
private final boolean[] mPaddingIsPercent = new boolean[Spacing.ALL + 1];
|
||||
private YogaNode mYogaNode;
|
||||
private int mGenerationDebugInformation = 1;
|
||||
private ReactShadowNode mOriginalReactShadowNode = null;
|
||||
|
||||
private @Nullable ReactStylesDiffMap mNewProps;
|
||||
|
@ -143,6 +144,7 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
|
|||
mScreenY = 0;
|
||||
mScreenWidth = 0;
|
||||
mScreenHeight = 0;
|
||||
mGenerationDebugInformation = original.mGenerationDebugInformation + 1;
|
||||
arraycopy(original.mPadding, 0, mPadding, 0, original.mPadding.length);
|
||||
arraycopy(original.mPaddingIsPercent, 0, mPaddingIsPercent, 0, original.mPaddingIsPercent.length);
|
||||
mNewProps = null;
|
||||
|
@ -1062,8 +1064,8 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
|
|||
result.append(" ");
|
||||
}
|
||||
|
||||
result.append("<").append(getClass().getSimpleName()).append(" tag=").append(getReactTag()).append(" hash=")
|
||||
.append(hashCode());
|
||||
result.append("<").append(getClass().getSimpleName()).append(" tag=").append(getReactTag()).append(" gen=")
|
||||
.append(mGenerationDebugInformation);
|
||||
if (mYogaNode != null) {
|
||||
result.append(" layout='x:").append(getScreenX())
|
||||
.append(" y:").append(getScreenY()).append(" w:").append(getLayoutWidth()).append(" h:")
|
||||
|
|
Loading…
Reference in New Issue