mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-20 15:14:04 -04:00
when comes into invalid drawsize, return
Signed-off-by: liwenzhen <liwenzhen3@huawei.com> Change-Id: Ib34250f0e0853a22280860740d631c35e03c2d16
This commit is contained in:
@@ -52,6 +52,7 @@ void RosenRenderWeb::Paint(RenderContext& context, const Offset& offset)
|
||||
}
|
||||
if (drawSize_.Width() > pipelineContext->GetRootWidth() || drawSize_.Height() > pipelineContext->GetRootHeight()) {
|
||||
LOGE("Web drawSize height or width is invalid");
|
||||
return;
|
||||
}
|
||||
if (delegate_) {
|
||||
LOGI("Web paint drawSize width = %{public}f, height = %{public}f", drawSize_.Width(), drawSize_.Height());
|
||||
|
||||
Reference in New Issue
Block a user