mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 06:22:39 +08:00
Reverting the dirty child optimization
Reviewed By: emilsjolander Differential Revision: D6203290 fbshipit-source-id: 8e42abb70e55f0fac90faaa21ecdbe0fbb76ce6b
This commit is contained in:
committed by
Facebook Github Bot
parent
1dca01b532
commit
0230672275
@@ -134,7 +134,7 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
|
||||
|
||||
@Override
|
||||
public final boolean hasUpdates() {
|
||||
return mNodeUpdated || hasNewLayout() || isDirty() || hasDirtyDescendants();
|
||||
return mNodeUpdated || hasNewLayout() || isDirty();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -174,11 +174,6 @@ public class ReactShadowNodeImpl implements ReactShadowNode<ReactShadowNodeImpl>
|
||||
return mYogaNode != null && mYogaNode.isDirty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasDirtyDescendants() {
|
||||
return mYogaNode != null && mYogaNode.hasDirtyDescendants();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addChildAt(ReactShadowNodeImpl child, int i) {
|
||||
if (child.getParent() != null) {
|
||||
|
||||
Reference in New Issue
Block a user