🎨 Minor formatting tweaks

This commit is contained in:
Kevin Sawicki 2017-02-14 11:09:15 -08:00
parent f19924bcb0
commit 82f452568c
3 changed files with 3 additions and 5 deletions

View file

@ -1496,9 +1496,8 @@ void WebContents::Invalidate() {
osr_rwhv->Invalidate(); osr_rwhv->Invalidate();
} else { } else {
const auto ownerWindow = owner_window(); const auto ownerWindow = owner_window();
if (ownerWindow) { if (ownerWindow)
ownerWindow->Invalidate(); ownerWindow->Invalidate();
}
} }
} }

View file

@ -1103,7 +1103,7 @@ void NativeWindowMac::Center() {
void NativeWindowMac::Invalidate() { void NativeWindowMac::Invalidate() {
[window_ flushWindow]; [window_ flushWindow];
[[window_ contentView] setNeedsDisplay:TRUE]; [[window_ contentView] setNeedsDisplay:YES];
} }
void NativeWindowMac::SetTitle(const std::string& title) { void NativeWindowMac::SetTitle(const std::string& title) {

View file

@ -697,8 +697,7 @@ void NativeWindowViews::Center() {
void NativeWindowViews::Invalidate() { void NativeWindowViews::Invalidate() {
const gfx::Rect& bounds = GetBounds(); const gfx::Rect& bounds = GetBounds();
window_->SchedulePaintInRect( window_->SchedulePaintInRect(gfx::Rect(GetBounds().size()));
gfx::Rect(0, 0, bounds.width(), bounds.height()));
} }
void NativeWindowViews::SetTitle(const std::string& title) { void NativeWindowViews::SetTitle(const std::string& title) {