格式修改

Signed-off-by: xufei <2404297821@qq.com>
This commit is contained in:
xufei 2024-09-01 19:13:06 +08:00
parent c7db375b4f
commit 0dbd05b3c6

View File

@ -675,13 +675,11 @@ void FormPattern::AddFormComponent(const RequestFormInfo& info)
host->GetRenderContext()->UpdateBorderRadius(borderRadius);
}
isJsCard_ = true;
PostBgTask(
[weak = WeakClaim(this), info, host] {
PostBgTask([weak = WeakClaim(this), info, host] {
auto pattern = weak.Upgrade();
CHECK_NULL_VOID(pattern);
pattern->AddFormComponentTask(info, host);
},
"ArkUIAddFormComponent");
}, "ArkUIAddFormComponent");
}
void FormPattern::AddFormComponentTask(const RequestFormInfo& info, RefPtrNG::FrameNode host)
@ -707,14 +705,12 @@ void FormPattern::AddFormComponentTask(const RequestFormInfo& info, RefPtrNG::Fr
#endif
if (!formInfo.transparencyEnabled && CheckFormBundleForbidden(info.bundleName)) {
PostUITask(
[weak = WeakClaim(this), info] {
ACE_SCOPED_TRACE("ArkUILoadDisableFormStyle");
auto pattern = weak.Upgrade();
CHECK_NULL_VOID(pattern);
pattern->LoadDisableFormStyle(info);
},
"ArkUILoadDisableFormStyle");
PostUITask([weak = WeakClaim(this), info] {
ACE_SCOPED_TRACE("ArkUILoadDisableFormStyle");
auto pattern = weak.Upgrade();
CHECK_NULL_VOID(pattern);
pattern->LoadDisableFormStyle(info);
}, "ArkUILoadDisableFormStyle");
}
}