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 95052 a8cc00d4ca483c1978cae5a8dcf5a8ae49e8cc72
parent 95051 20a421502a41c9c8c2f9c8c42bef2922d429b2ce
child 95053 ca31a899ce4ea86b7c1eb6e1d597ba5f98d91993
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersblassey
bugs753665
milestone15.0a1
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);