[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-08-31 02:06:36 +00:00
committed by GitHub
parent e0223f0f25
commit 86caf598f2
3 changed files with 6 additions and 7 deletions

View File

@@ -89,10 +89,10 @@ template<typename Visitor>
void JSYogaConfig::visitOutputConstraints(JSC::JSCell* cell, Visitor& visitor)
{
auto* thisObject = jsCast<JSYogaConfig*>(cell);
// Lock for concurrent GC thread safety
WTF::Locker locker { thisObject->cellLock() };
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitOutputConstraints(thisObject, visitor);
thisObject->visitAdditionalChildren(visitor);

View File

@@ -58,7 +58,7 @@ void JSYogaNode::finishCreation(JSC::VM& vm, YGConfigRef config, JSYogaConfig* j
// Set this JS wrapper in the C++ impl
m_impl->setJSWrapper(this);
// Store the JSYogaConfig if provided
// Store the JSYogaConfig if provided
if (jsConfig) {
m_config.set(vm, this, jsConfig);
}
@@ -70,7 +70,7 @@ void JSYogaNode::finishCreation(JSC::VM& vm)
// Set this JS wrapper in the C++ impl
m_impl->setJSWrapper(this);
// No JSYogaConfig in this path - it's only set when explicitly provided
}
@@ -132,7 +132,7 @@ void JSYogaNode::visitOutputConstraints(JSC::JSCell* cell, Visitor& visitor)
auto* thisObject = jsCast<JSYogaNode*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitOutputConstraints(thisObject, visitor);
// Re-visit after mutator execution in case callbacks changed references
// This is critical for objects whose reachability can change during runtime
thisObject->visitAdditionalChildren(visitor);

View File

@@ -23,11 +23,10 @@ public:
void clearJSWrapper();
void clearJSWrapperWithoutDeref(); // Clear weak ref without deref (for JS destructor)
JSYogaNode* jsWrapper() const;
// Config access through JS wrapper's WriteBarrier
JSYogaConfig* jsConfig() const;
// Helper to get YogaNodeImpl from YGNodeRef
static YogaNodeImpl* fromYGNode(YGNodeRef);