mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix lint errors
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user