Fix lint errors
This commit is contained in:
parent
ed44b32ff5
commit
11e1f6b56c
1 changed files with 5 additions and 4 deletions
|
@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue