fix: WCO crash on bad titlebarStyle (#34302)

This commit is contained in:
Shelley Vohr
2022-05-23 04:42:27 +02:00
committed by GitHub
parent f9dc5b52d0
commit c7cd23c069
2 changed files with 30 additions and 6 deletions

View File

@@ -55,8 +55,8 @@ SkColor WinFrameView::GetReadableFeatureColor(SkColor background_color) {
}
void WinFrameView::InvalidateCaptionButtons() {
// Ensure that the caption buttons container exists
DCHECK(caption_button_container_);
if (!caption_button_container_)
return;
caption_button_container_->InvalidateLayout();
caption_button_container_->SchedulePaint();