!44315 [新需求][5.0挑单]: frame_node.cpp自定义节点获取,代码同步 5.0

Merge pull request !44315 from Jim Zhang/cherry-pick-1727098058
This commit is contained in:
openharmony_ci 2024-09-29 02:08:51 +00:00 committed by Gitee
commit 1e0dfc0dc3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1936,6 +1936,9 @@ RefPtr<PaintWrapper> FrameNode::CreatePaintWrapper()
// It is necessary to copy the layoutProperty property to prevent the paintProperty_ property from being
// modified during the paint process, resulting in the problem of judging whether the front-end setting value
// changes the next time js is executed.
if (!paintMethod) {
paintMethod = pattern_->CreateDefaultNodePaintMethod();
}
auto paintWrapper = MakeRefPtr<PaintWrapper>(
renderContext_, geometryNode_->Clone(), paintProperty_->Clone(), extensionHandler_);