diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index a5384f83d2d..5ae6186a04e 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1494,13 +1494,14 @@ void WebContents::Invalidate() { web_contents()->GetRenderWidgetHostView()); if (osr_rwhv) osr_rwhv->Invalidate(); - } - else { + } else { const auto ownerWindow = owner_window(); - const auto nativeWindow = ownerWindow ? ownerWindow->GetNativeWindow() : nullptr; + const auto nativeWindow = ownerWindow ? ownerWindow->GetNativeWindow() : + nullptr; if (nativeWindow) { const gfx::Rect& bounds = nativeWindow->bounds(); - nativeWindow->SchedulePaintInRect(gfx::Rect(0, 0, bounds.width(), bounds.height())); + nativeWindow->SchedulePaintInRect( + gfx::Rect(0, 0, bounds.width(), bounds.height())); } } }