Bug 753665 - Fix incorrect comment and some formatting of debug output. r=blassey
authorKartikaya Gupta <kgupta@mozilla.com>
Sat, 26 May 2012 11:07:24 -0400
changeset 95029 a8cc00d4ca483c1978cae5a8dcf5a8ae49e8cc72
parent 95028 20a421502a41c9c8c2f9c8c42bef2922d429b2ce
child 95030 ca31a899ce4ea86b7c1eb6e1d597ba5f98d91993
push id9924
push userkgupta@mozilla.com
push dateSat, 26 May 2012 15:08:17 +0000
treeherdermozilla-inbound@a8cc00d4ca48 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs753665
milestone15.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 753665 - Fix incorrect comment and some formatting of debug output. r=blassey
widget/android/nsWindow.cpp
--- a/widget/android/nsWindow.cpp
+++ b/widget/android/nsWindow.cpp
@@ -127,17 +127,17 @@ nsWindow::TopWindow()
     return nsnull;
 }
 
 void
 nsWindow::LogWindow(nsWindow *win, int index, int indent)
 {
     char spaces[] = "                    ";
     spaces[indent < 20 ? indent : 20] = 0;
-    ALOG("%s [% 2d] 0x%08x [parent 0x%08x] [% 3d,% 3d % 3dx% 3d] vis %d type %d",
+    ALOG("%s [% 2d] 0x%08x [parent 0x%08x] [% 3d,% 3dx% 3d,% 3d] vis %d type %d",
          spaces, index, (intptr_t)win, (intptr_t)win->mParent,
          win->mBounds.x, win->mBounds.y,
          win->mBounds.width, win->mBounds.height,
          win->mIsVisible, win->mWindowType);
 }
 
 void
 nsWindow::DumpWindows()
@@ -283,19 +283,17 @@ nsWindow::RedrawAll()
 
 NS_IMETHODIMP
 nsWindow::SetParent(nsIWidget *aNewParent)
 {
     if ((nsIWidget*)mParent == aNewParent)
         return NS_OK;
 
     // If we had a parent before, remove ourselves from its list of
-    // children.  If we didn't have a parent, then remove ourselves
-    // from the list of toplevel windows if we're about to get a
-    // parent.
+    // children.
     if (mParent)
         mParent->mChildren.RemoveElement(this);
 
     mParent = (nsWindow*)aNewParent;
 
     if (mParent)
         mParent->mChildren.AppendElement(this);