Remove isTextNode optimization
Summary: Scrolling through feed and logging when this optimization is hit leads to... 0 logs. If anything this just adds to confusion. It was initially added due to instinct and not data, which was a mistake. I am happy to add some similar optimization in the future if we have data that it is useful in real world situations, currently it just leads to bugs and confusion though. Reviewed By: astreet Differential Revision: D4146785 fbshipit-source-id: e20d780fbd5759b8f38b809e8cadf29cedee82a8
This commit is contained in:
committed by
Facebook Github Bot
parent
b50090a04e
commit
1baa239389
@@ -140,18 +140,6 @@ public class CSSNode implements CSSNodeAPI<CSSNode> {
|
||||
return mChildren == null ? -1 : mChildren.indexOf(child);
|
||||
}
|
||||
|
||||
private native void jni_CSSNodeSetIsTextNode(long nativePointer, boolean isTextNode);
|
||||
@Override
|
||||
public void setIsTextNode(boolean isTextNode) {
|
||||
jni_CSSNodeSetIsTextNode(mNativePointer, isTextNode);
|
||||
}
|
||||
|
||||
private native boolean jni_CSSNodeGetIsTextNode(long nativePointer);
|
||||
@Override
|
||||
public boolean isTextNode() {
|
||||
return jni_CSSNodeGetIsTextNode(mNativePointer);
|
||||
}
|
||||
|
||||
private native void jni_CSSNodeCalculateLayout(long nativePointer);
|
||||
@Override
|
||||
public void calculateLayout(CSSLayoutContext layoutContext) {
|
||||
|
Reference in New Issue
Block a user