]> khamidou — GitHub mirrors - electron.git/commitdiff
:lipstick: Fix cpplint warning.
authorCheng Zhao <zcbenz@gmail.com>
Thu, 15 May 2014 08:44:56 +0000 (16:44 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 15 May 2014 08:44:56 +0000 (16:44 +0800)
atom/browser/native_window_gtk.cc

index 205201e5b7f222eecaa8fc81d58103742a48edec..0b49b0420c7f8f192d0a86b7dbd7aef3353d2dd6 100644 (file)
@@ -266,10 +266,10 @@ void NativeWindowGtk::SetContentSize(const gfx::Size& size) {
   if (!has_frame_ || !has_ever_been_shown_) {
     gtk_window_util::SetWindowSize(window_, size);
   } else {
-    gfx::Size window_size = GetSize();
-    gfx::Size content_size = GetContentSize();
-    gfx::Size target(size.width() + window_size.width() - content_size.width(),
-                     size.height() + window_size.height() - content_size.height());
+    gfx::Size large = GetSize();
+    gfx::Size small = GetContentSize();
+    gfx::Size target(size.width() + large.width() - small.width(),
+                     size.height() + large.height() - small.height());
     gtk_window_util::SetWindowSize(window_, target);
   }
 }