diff --git a/ReactCommon/fabric/core/layout/LayoutableShadowNode.h b/ReactCommon/fabric/core/layout/LayoutableShadowNode.h index 020a7165784..ea30b492950 100644 --- a/ReactCommon/fabric/core/layout/LayoutableShadowNode.h +++ b/ReactCommon/fabric/core/layout/LayoutableShadowNode.h @@ -98,6 +98,12 @@ class LayoutableShadowNode : public ShadowNode { LayoutableShadowNode const &ancestorLayoutableShadowNode, LayoutInspectingPolicy policy) const; + /* + * Sets layout metrics for the shadow node. + * Returns true if the metrics are different from previous ones. + */ + bool setLayoutMetrics(LayoutMetrics layoutMetrics); + /* * Returns the ShadowNode that is rendered at the Point received as a * parameter. @@ -140,12 +146,6 @@ class LayoutableShadowNode : public ShadowNode { */ LayoutableShadowNode::UnsharedList getLayoutableChildNodes() const; - /* - * Sets layout metrics for the shadow node. - * Returns true if the metrics are different from previous ones. - */ - virtual bool setLayoutMetrics(LayoutMetrics layoutMetrics); - #pragma mark - DebugStringConvertible #if RN_DEBUG_STRING_CONVERTIBLE diff --git a/ReactCommon/fabric/core/tests/TestComponent.h b/ReactCommon/fabric/core/tests/TestComponent.h index 2de9bdd4032..e71d46ffb1a 100644 --- a/ReactCommon/fabric/core/tests/TestComponent.h +++ b/ReactCommon/fabric/core/tests/TestComponent.h @@ -55,10 +55,6 @@ class TestShadowNode : public ConcreteViewShadowNode< Transform _transform{Transform::Identity()}; - bool setLayoutMetrics(LayoutMetrics layoutMetrics) override { - return YogaLayoutableShadowNode::setLayoutMetrics(layoutMetrics); - } - Transform getTransform() const override { return _transform; }