Find and fix typos in yoga code (#36560)
Summary: X-link: https://github.com/facebook/react-native/pull/36560 X-link: https://github.com/facebook/litho/pull/935 Pull Request resolved: https://github.com/facebook/yoga/pull/1239 Changelog: [Internal] - A follow-up to D44172494, I've run a pass of [typos](https://github.com/crate-ci/typos) on the Yoga code to detect/fix typos in comments and identifiers (with a manual review afterwards). Reviewed By: javache Differential Revision: D44254911 fbshipit-source-id: 6e8bfe83ec2f963108450cdcb8c79dfc8d1a7375
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b17f08ed49
commit
3782644b32
@@ -40,7 +40,7 @@ public class YogaNative {
|
||||
static native void jni_YGNodeRemoveChildJNI(long nativePointer, long childPointer);
|
||||
static native void jni_YGNodeCalculateLayoutJNI(long nativePointer, float width, float height, long[] nativePointers, YogaNodeJNIBase[] nodes);
|
||||
static native void jni_YGNodeMarkDirtyJNI(long nativePointer);
|
||||
static native void jni_YGNodeMarkDirtyAndPropogateToDescendantsJNI(long nativePointer);
|
||||
static native void jni_YGNodeMarkDirtyAndPropagateToDescendantsJNI(long nativePointer);
|
||||
static native boolean jni_YGNodeIsDirtyJNI(long nativePointer);
|
||||
static native void jni_YGNodeCopyStyleJNI(long dstNativePointer, long srcNativePointer);
|
||||
static native int jni_YGNodeStyleGetDirectionJNI(long nativePointer);
|
||||
|
@@ -232,7 +232,7 @@ public abstract class YogaNodeJNIBase extends YogaNode implements Cloneable {
|
||||
}
|
||||
|
||||
public void dirtyAllDescendants() {
|
||||
YogaNative.jni_YGNodeMarkDirtyAndPropogateToDescendantsJNI(mNativePointer);
|
||||
YogaNative.jni_YGNodeMarkDirtyAndPropagateToDescendantsJNI(mNativePointer);
|
||||
}
|
||||
|
||||
public boolean isDirty() {
|
||||
|
@@ -37,7 +37,7 @@ namespace vanillajni {
|
||||
* unexpected conversions or unexpected ownership transfer. In practice, this
|
||||
* class acts as a unique pointer where the underying JNI reference can have one
|
||||
* and just one owner. Transferring ownership is allowed but it is an explicit
|
||||
* operation (implemneted via move semantics and also via explicity API calls).
|
||||
* operation (implemented via move semantics and also via explicitly API calls).
|
||||
*
|
||||
* Note that this class doesn't receive an explicit JNIEnv at construction time.
|
||||
* At destruction time it uses vanillajni::getCurrentEnv() to retrieve the
|
||||
|
@@ -39,7 +39,7 @@ namespace vanillajni {
|
||||
* unexpected conversions or unexpected ownership transfer. In practice, this
|
||||
* class acts as a unique pointer where the underying JNI reference can have one
|
||||
* and just one owner. Transferring ownership is allowed but it is an explicit
|
||||
* operation (implemneted via move semantics and also via explicity API calls).
|
||||
* operation (implemented via move semantics and also via explicitly API calls).
|
||||
*
|
||||
* As with standard JNI local references it is not a valid operation to keep a
|
||||
* reference around between different native method calls.
|
||||
|
@@ -389,11 +389,11 @@ static void jni_YGNodeMarkDirtyJNI(
|
||||
YGNodeMarkDirty(_jlong2YGNodeRef(nativePointer));
|
||||
}
|
||||
|
||||
static void jni_YGNodeMarkDirtyAndPropogateToDescendantsJNI(
|
||||
static void jni_YGNodeMarkDirtyAndPropagateToDescendantsJNI(
|
||||
JNIEnv* env,
|
||||
jobject obj,
|
||||
jlong nativePointer) {
|
||||
YGNodeMarkDirtyAndPropogateToDescendants(_jlong2YGNodeRef(nativePointer));
|
||||
YGNodeMarkDirtyAndPropagateToDescendants(_jlong2YGNodeRef(nativePointer));
|
||||
}
|
||||
|
||||
static jboolean jni_YGNodeIsDirtyJNI(
|
||||
@@ -785,9 +785,9 @@ static JNINativeMethod methods[] = {
|
||||
"(JFF[J[Lcom/facebook/yoga/YogaNodeJNIBase;)V",
|
||||
(void*) jni_YGNodeCalculateLayoutJNI},
|
||||
{"jni_YGNodeMarkDirtyJNI", "(J)V", (void*) jni_YGNodeMarkDirtyJNI},
|
||||
{"jni_YGNodeMarkDirtyAndPropogateToDescendantsJNI",
|
||||
{"jni_YGNodeMarkDirtyAndPropagateToDescendantsJNI",
|
||||
"(J)V",
|
||||
(void*) jni_YGNodeMarkDirtyAndPropogateToDescendantsJNI},
|
||||
(void*) jni_YGNodeMarkDirtyAndPropagateToDescendantsJNI},
|
||||
{"jni_YGNodeIsDirtyJNI", "(J)Z", (void*) jni_YGNodeIsDirtyJNI},
|
||||
{"jni_YGNodeCopyStyleJNI", "(JJ)V", (void*) jni_YGNodeCopyStyleJNI},
|
||||
{"jni_YGNodeStyleGetDirectionJNI",
|
||||
|
Reference in New Issue
Block a user