!1940 bugfix for surfaceNode not create

Merge pull request !1940 from lee/OpenHarmony-3.1-Release
This commit is contained in:
openharmony_ci
2022-03-23 12:22:00 +00:00
committed by Gitee
3 changed files with 1 additions and 10 deletions
@@ -49,10 +49,6 @@ RefPtr<Component> AddFlexItemComponent(const RefPtr<Component>& component)
auto newFlexItem = AceType::MakeRefPtr<FlexItemComponent>(0.0, 1.0, 0.0);
newFlexItem->SetChild(composedChild);
composedComponent->SetChild(newFlexItem);
if (composedChild) {
// extend already marked component group with flex item component
Component::ExtendRSNode(newFlexItem, composedChild);
}
return component;
}
@@ -60,10 +56,6 @@ RefPtr<Component> AddFlexItemComponent(const RefPtr<Component>& component)
if (!multiComposedComponent) {
auto newFlexItem = AceType::MakeRefPtr<FlexItemComponent>(0.0, 1.0, 0.0);
newFlexItem->SetChild(component);
if (component) {
// extend already marked component group with flex item component
Component::ExtendRSNode(newFlexItem, component);
}
return newFlexItem;
}
@@ -80,9 +80,9 @@ void GridLayoutElement::ApplyRenderChild(const RefPtr<RenderElement>& renderChil
LOGE("fail to create proxy node");
return;
}
renderNode_->AddChild(proxy);
proxy->AddChild(renderChild->GetRenderNode());
proxy->Attach(context_);
renderNode_->AddChild(proxy);
}
void GridLayoutElement::PerformBuild()
@@ -32,7 +32,6 @@ void RosenRenderGridLayout::Update(const RefPtr<Component>& component)
void RosenRenderGridLayout::Paint(RenderContext& context, const Offset& offset)
{
RenderNode::Paint(context, offset);
for (const auto& child : GetChildren()) {
auto gridLayoutItem = FindChildOfClass<RenderGridLayoutItem>(child);
if (gridLayoutItem && gridLayoutItem->IsSelected()) {