Bug 620253 nsResizerFrame::AdjustDimensions fall through comment is misplaced, r+a=dbaron
authortimeless@mozdev.org
Sun, 19 Dec 2010 19:39:00 -0800
changeset 59657 6b09edde1450a1aae390679732faa199fc3092f0
parent 59656 125be03bd296799f0301ccde8eb2cdd3ff7a0597
child 59658 d987ade28bca2344d1f3eaad5236e3e217646c18
push idunknown
push userunknown
push dateunknown
bugs620253
milestone2.0b9pre
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 620253 nsResizerFrame::AdjustDimensions fall through comment is misplaced, r+a=dbaron
layout/xul/base/src/nsResizerFrame.cpp
--- a/layout/xul/base/src/nsResizerFrame.cpp
+++ b/layout/xul/base/src/nsResizerFrame.cpp
@@ -394,21 +394,24 @@ nsResizerFrame::GetContentToResize(nsIPr
  * the resizer direction
  */
 void
 nsResizerFrame::AdjustDimensions(PRInt32* aPos, PRInt32* aSize,
                                  PRInt32 aMovement, PRInt8 aResizerDirection)
 {
   switch(aResizerDirection)
   {
-    case -1: // only move the window when the direction is top and/or left
+    case -1:
+      // only move the window when the direction is top and/or left
       *aPos+= aMovement;
-    case 1: // falling through: the window is resized in both cases
+      // falling through: the window is resized in both cases
+    case 1:
       *aSize+= aResizerDirection*aMovement;
-      if (*aSize < 1) // use one as a minimum size or the element could disappear
+      // use one as a minimum size or the element could disappear
+      if (*aSize < 1)
         *aSize = 1;
   }
 }
 
 /* returns a Direction struct containing the horizontal and vertical direction
  */
 nsResizerFrame::Direction
 nsResizerFrame::GetDirection()