From ed44b32ff58348275b3e7c2d4888e9ddf31aa4d2 Mon Sep 17 00:00:00 2001 From: Gary Wilber Date: Tue, 7 Feb 2017 23:08:03 -0800 Subject: [PATCH] Convert indentation to spaces --- atom/browser/api/atom_api_web_contents.cc | 28 +++++++++++------------ 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 3605f806ae..a5384f83d2 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -1489,20 +1489,20 @@ int WebContents::GetFrameRate() const { } void WebContents::Invalidate() { - if (IsOffScreen()) { - auto* osr_rwhv = static_cast( - web_contents()->GetRenderWidgetHostView()); - if (osr_rwhv) - osr_rwhv->Invalidate(); - } - else { - const auto ownerWindow = owner_window(); - 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())); - } - } + if (IsOffScreen()) { + auto* osr_rwhv = static_cast( + web_contents()->GetRenderWidgetHostView()); + if (osr_rwhv) + osr_rwhv->Invalidate(); + } + else { + const auto ownerWindow = owner_window(); + 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())); + } + } } v8::Local WebContents::GetWebPreferences(v8::Isolate* isolate) {