imageAnimator性能优化

Signed-off-by: zhangwenbin <zhangwenbin35@h-partners.com>
This commit is contained in:
zhangwenbin 2024-10-15 16:39:57 +08:00
parent a358c5af96
commit d52e39e277

View File

@ -307,10 +307,10 @@ void ImageAnimatorPattern::OnModifyDone()
CHECK_NULL_VOID(imageTheme);
auto renderContext = host->GetRenderContext();
CHECK_NULL_VOID(renderContext);
if (!renderContext->HasBorderRadius()) {
if (!renderContext->HasBorderRadius() && imageTheme->GetCardRadius() > 0.0_vp) {
renderContext->UpdateBorderRadius(BorderRadiusProperty(imageTheme->GetCardRadius()));
}
if (!renderContext->HasClipEdge()) {
if (!renderContext->HasClipEdge() && imageTheme->GetClipEdge()) {
renderContext->UpdateClipEdge(imageTheme->GetClipEdge());
}