refactor: move IsClosed() and IsClosable() tests into NativeWindow::Close() (#46907)

refactor: devirtualize NativeWindow::IsClosed()

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
trop[bot]
2025-05-02 19:08:28 -05:00
committed by GitHub
parent 47e25dfd57
commit bf94f88569
8 changed files with 37 additions and 33 deletions

View File

@@ -362,8 +362,7 @@ void BaseWindow::SetContentView(gin::Handle<View> view) {
}
void BaseWindow::CloseImmediately() {
if (!window_->IsClosed())
window_->CloseImmediately();
window_->CloseImmediately();
}
void BaseWindow::Close() {