Convert indentation to spaces

This commit is contained in:
Gary Wilber 2017-02-07 23:08:03 -08:00
parent 148898fb75
commit ed44b32ff5

View file

@ -1489,20 +1489,20 @@ int WebContents::GetFrameRate() const {
} }
void WebContents::Invalidate() { void WebContents::Invalidate() {
if (IsOffScreen()) { if (IsOffScreen()) {
auto* osr_rwhv = static_cast<OffScreenRenderWidgetHostView*>( auto* osr_rwhv = static_cast<OffScreenRenderWidgetHostView*>(
web_contents()->GetRenderWidgetHostView()); web_contents()->GetRenderWidgetHostView());
if (osr_rwhv) if (osr_rwhv)
osr_rwhv->Invalidate(); osr_rwhv->Invalidate();
} }
else { else {
const auto ownerWindow = owner_window(); const auto ownerWindow = owner_window();
const auto nativeWindow = ownerWindow ? ownerWindow->GetNativeWindow() : nullptr; const auto nativeWindow = ownerWindow ? ownerWindow->GetNativeWindow() : nullptr;
if (nativeWindow) { if (nativeWindow) {
const gfx::Rect& bounds = nativeWindow->bounds(); 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()));
} }
} }
} }
v8::Local<v8::Value> WebContents::GetWebPreferences(v8::Isolate* isolate) { v8::Local<v8::Value> WebContents::GetWebPreferences(v8::Isolate* isolate) {