Fix lint errors

This commit is contained in:
Gary Wilber 2017-02-08 00:05:16 -08:00
parent ed44b32ff5
commit 11e1f6b56c

View file

@ -1494,13 +1494,14 @@ void WebContents::Invalidate() {
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()));
} }
} }
} }