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
@@ -180,9 +180,9 @@ YOGA_EXPORT bool YGNodeIsDirty(YGNodeRef node) {
|
||||
return node->isDirty();
|
||||
}
|
||||
|
||||
YOGA_EXPORT void YGNodeMarkDirtyAndPropogateToDescendants(
|
||||
YOGA_EXPORT void YGNodeMarkDirtyAndPropagateToDescendants(
|
||||
const YGNodeRef node) {
|
||||
return node->markDirtyAndPropogateDownwards();
|
||||
return node->markDirtyAndPropagateDownwards();
|
||||
}
|
||||
|
||||
int32_t gConfigInstanceCount = 0;
|
||||
@@ -290,7 +290,7 @@ YOGA_EXPORT void YGNodeSetIsReferenceBaseline(
|
||||
bool isReferenceBaseline) {
|
||||
if (node->isReferenceBaseline() != isReferenceBaseline) {
|
||||
node->setIsReferenceBaseline(isReferenceBaseline);
|
||||
node->markDirtyAndPropogate();
|
||||
node->markDirtyAndPropagate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -314,7 +314,7 @@ YOGA_EXPORT void YGNodeInsertChild(
|
||||
|
||||
owner->insertChild(child, index);
|
||||
child->setOwner(owner);
|
||||
owner->markDirtyAndPropogate();
|
||||
owner->markDirtyAndPropagate();
|
||||
}
|
||||
|
||||
YOGA_EXPORT void YGNodeSwapChild(
|
||||
@@ -342,7 +342,7 @@ YOGA_EXPORT void YGNodeRemoveChild(
|
||||
excludedChild->setLayout({}); // layout is no longer valid
|
||||
excludedChild->setOwner(nullptr);
|
||||
}
|
||||
owner->markDirtyAndPropogate();
|
||||
owner->markDirtyAndPropagate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -362,13 +362,13 @@ YOGA_EXPORT void YGNodeRemoveAllChildren(const YGNodeRef owner) {
|
||||
oldChild->setOwner(nullptr);
|
||||
}
|
||||
owner->clearChildren();
|
||||
owner->markDirtyAndPropogate();
|
||||
owner->markDirtyAndPropagate();
|
||||
return;
|
||||
}
|
||||
// Otherwise, we are not the owner of the child set. We don't have to do
|
||||
// anything to clear it.
|
||||
owner->setChildren(YGVector());
|
||||
owner->markDirtyAndPropogate();
|
||||
owner->markDirtyAndPropagate();
|
||||
}
|
||||
|
||||
static void YGNodeSetChildrenInternal(
|
||||
@@ -384,7 +384,7 @@ static void YGNodeSetChildrenInternal(
|
||||
child->setOwner(nullptr);
|
||||
}
|
||||
owner->setChildren(YGVector());
|
||||
owner->markDirtyAndPropogate();
|
||||
owner->markDirtyAndPropagate();
|
||||
}
|
||||
} else {
|
||||
if (YGNodeGetChildCount(owner) > 0) {
|
||||
@@ -402,7 +402,7 @@ static void YGNodeSetChildrenInternal(
|
||||
for (YGNodeRef child : children) {
|
||||
child->setOwner(owner);
|
||||
}
|
||||
owner->markDirtyAndPropogate();
|
||||
owner->markDirtyAndPropagate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -447,7 +447,7 @@ YOGA_EXPORT void YGNodeMarkDirty(const YGNodeRef node) {
|
||||
"Only leaf nodes with custom measure functions"
|
||||
"should manually mark themselves as dirty");
|
||||
|
||||
node->markDirtyAndPropogate();
|
||||
node->markDirtyAndPropagate();
|
||||
}
|
||||
|
||||
YOGA_EXPORT void YGNodeCopyStyle(
|
||||
@@ -455,7 +455,7 @@ YOGA_EXPORT void YGNodeCopyStyle(
|
||||
const YGNodeRef srcNode) {
|
||||
if (!(dstNode->getStyle() == srcNode->getStyle())) {
|
||||
dstNode->setStyle(srcNode->getStyle());
|
||||
dstNode->markDirtyAndPropogate();
|
||||
dstNode->markDirtyAndPropagate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -482,7 +482,7 @@ void updateStyle(
|
||||
Update&& update) {
|
||||
if (needsUpdate(node->getStyle(), value)) {
|
||||
update(node->getStyle(), value);
|
||||
node->markDirtyAndPropogate();
|
||||
node->markDirtyAndPropagate();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -514,7 +514,7 @@ void updateIndexedStyleProp(
|
||||
// MSVC has trouble inferring the return type of pointer to member functions
|
||||
// with const and non-const overloads, instead of preferring the non-const
|
||||
// overload like clang and GCC. For the purposes of updateStyle(), we can help
|
||||
// MSVC by specifying that return type explicitely. In combination with
|
||||
// MSVC by specifying that return type explicitly. In combination with
|
||||
// decltype, MSVC will prefer the non-const version.
|
||||
#define MSVC_HINT(PROP) decltype(YGStyle{}.PROP())
|
||||
|
||||
@@ -1835,7 +1835,7 @@ static bool YGNodeFixedSizeSetMeasuredDimensions(
|
||||
return false;
|
||||
}
|
||||
|
||||
static void YGZeroOutLayoutRecursivly(
|
||||
static void YGZeroOutLayoutRecursively(
|
||||
const YGNodeRef node,
|
||||
void* layoutContext) {
|
||||
node->getLayout() = {};
|
||||
@@ -1844,7 +1844,7 @@ static void YGZeroOutLayoutRecursivly(
|
||||
node->setHasNewLayout(true);
|
||||
|
||||
node->iterChildrenAfterCloningIfNeeded(
|
||||
YGZeroOutLayoutRecursivly, layoutContext);
|
||||
YGZeroOutLayoutRecursively, layoutContext);
|
||||
}
|
||||
|
||||
static float YGNodeCalculateAvailableInnerDim(
|
||||
@@ -1920,7 +1920,7 @@ static float YGNodeComputeFlexBasisForChildren(
|
||||
for (auto child : children) {
|
||||
child->resolveDimension();
|
||||
if (child->getStyle().display() == YGDisplayNone) {
|
||||
YGZeroOutLayoutRecursivly(child, layoutContext);
|
||||
YGZeroOutLayoutRecursively(child, layoutContext);
|
||||
child->setHasNewLayout(true);
|
||||
child->setDirty(false);
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user