:art: Minor formatting tweaks
authorKevin Sawicki <kevinsawicki@gmail.com>
Tue, 14 Feb 2017 19:09:15 +0000 (11:09 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Tue, 14 Feb 2017 19:09:15 +0000 (11:09 -0800)
atom/browser/api/atom_api_web_contents.cc
atom/browser/native_window_mac.mm
atom/browser/native_window_views.cc

index c904373..bd57bc2 100644 (file)
@@ -1496,9 +1496,8 @@ void WebContents::Invalidate() {
       osr_rwhv->Invalidate();
   } else {
     const auto ownerWindow = owner_window();
-    if (ownerWindow) {
+    if (ownerWindow)
       ownerWindow->Invalidate();
-    }
   }
 }
 
index cef80ce..8b1eff2 100644 (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) {
index 64ed061..4b64367 100644 (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) {