[挑单5.0Release]优化text paragraph reset操作重新布局时才做paragraph的清除

Signed-off-by: zhouyan <zhouyan162@huawei.com>
This commit is contained in:
zhouyan 2024-08-23 05:58:25 +00:00
parent df4081280e
commit a3735ed424

View File

@ -2044,12 +2044,6 @@ void TextPattern::OnModifyDone()
auto renderContext = host->GetRenderContext();
CHECK_NULL_VOID(renderContext);
if (CheckNeedMeasure(textLayoutProperty->GetPropertyChangeFlag()) && pManager_) {
// measure flag changed, reset paragraph.
ACE_TEXT_SCOPED_TRACE("OnModifyDone[Text][id:%d]", host->GetId());
pManager_->Reset();
}
if (!(PipelineContext::GetCurrentContextSafely() &&
PipelineContext::GetCurrentContextSafely()->GetMinPlatformVersion() > API_PROTEXTION_GREATER_NINE)) {
bool shouldClipToContent =