🎨 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,10 +1496,9 @@ void WebContents::Invalidate() {
osr_rwhv->Invalidate();
} else {
const auto ownerWindow = owner_window();
if (ownerWindow) {
if (ownerWindow)
ownerWindow->Invalidate();
}
}
}
v8::Local<v8::Value> WebContents::GetWebPreferences(v8::Isolate* isolate) {

View file

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

View file

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