when comes into invalid drawsize, return

Signed-off-by: liwenzhen <liwenzhen3@huawei.com>
Change-Id: Ib34250f0e0853a22280860740d631c35e03c2d16
This commit is contained in:
liwenzhen
2022-03-24 15:47:46 +08:00
parent 2e604e278b
commit 15b37d16c0
@@ -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());