!49083 fix codestyle

Merge pull request !49083 from gaoguanghuione/1121
This commit is contained in:
openharmony_ci 2024-11-22 02:48:55 +00:00 committed by Gitee
commit 2afffa582e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -428,7 +428,7 @@ void WindowScene::OnActivation()
void WindowScene::DisposeSnapshotAndBlankWindow()
{
CHECK_NULL_VOID(session_);
if (session_->GetBlankFlag()) {
if (session_->GetBlank()) {
return;
}
auto surfaceNode = session_->GetSurfaceNode();
@ -622,9 +622,9 @@ bool WindowScene::IsWindowSizeEqual()
bool WindowScene::OnDirtyLayoutWrapperSwap(const RefPtr<LayoutWrapper>& dirty, const DirtySwapConfig& config)
{
CHECK_EQUAL_RETURN(IsMainWindow(), false, false);
CHECK_EQUAL_RETURN(attachToFrameNodeFlag_ || session_->GetBlankFlag(), false, false);
CHECK_EQUAL_RETURN(attachToFrameNodeFlag_ || session_->GetBlank(), false, false);
attachToFrameNodeFlag_ = false;
CHECK_EQUAL_RETURN(session_->GetShowRecent() && !session_->GetBlankFlag(), true, false);
CHECK_EQUAL_RETURN(session_->GetShowRecent() && !session_->GetBlank(), true, false);
auto surfaceNode = session_->GetSurfaceNode();
if (surfaceNode) {
surfaceNode->SetBufferAvailableCallback(callback_);
@ -637,12 +637,12 @@ bool WindowScene::OnDirtyLayoutWrapperSwap(const RefPtr<LayoutWrapper>& dirty, c
auto size = geometryNode->GetFrameSize();
ACE_SCOPED_TRACE("WindowSCENE::OnDirtyLayoutWrapperSwap[id:%d][%f %f][%d %d][blank:%d]",
session_->GetPersistentId(), size.Width(), size.Height(),
session_->GetLayoutRect().width_, session_->GetLayoutRect().height_, session_->GetBlankFlag());
session_->GetLayoutRect().width_, session_->GetLayoutRect().height_, session_->GetBlank());
if (NearEqual(size.Width(), session_->GetLayoutRect().width_, 1.0f) &&
NearEqual(size.Height(), session_->GetLayoutRect().height_, 1.0f) && !session_->GetBlankFlag()) {
NearEqual(size.Height(), session_->GetLayoutRect().height_, 1.0f) && !session_->GetBlank()) {
return false;
}
session_->SetBlankFlag(false);
session_->SetBlank(false);
auto host = GetHost();
CHECK_NULL_RETURN(host, false);
RemoveChild(host, snapshotWindow_, snapshotWindowName_);