Bug 620258 add additional fall through comments to nsEventStateManager::PreHandleEvent
authortimeless@mozdev.org
Sun, 19 Dec 2010 19:46:00 -0500
changeset 63945 5681a7818bd022c8057b47aa916f0d41515b4599
parent 63944 c1959310eb55054b6fa33cd3b85a6c19b4bced05
child 63946 09d89b560c4f02642402690ba8df9d3c9439a63b
push id19288
push usereakhgari@mozilla.com
push dateSat, 26 Mar 2011 04:02:55 +0000
treeherdermozilla-central@bf68a4a3ef6a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs620258
milestone2.2a1pre
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 620258 add additional fall through comments to nsEventStateManager::PreHandleEvent r=smaug
content/events/src/nsEventStateManager.cpp
--- a/content/events/src/nsEventStateManager.cpp
+++ b/content/events/src/nsEventStateManager.cpp
@@ -1126,20 +1126,22 @@ nsEventStateManager::PreHandleEvent(nsPr
       case nsMouseEvent::eLeftButton:
         if (mClickHoldContextMenu) {
           KillClickHoldTimer();
         }
 #ifndef XP_OS2
         StopTrackingDragGesture();
 #endif
         sNormalLMouseEventInProcess = PR_FALSE;
+        // then fall through...
       case nsMouseEvent::eRightButton:
 #ifdef XP_OS2
         StopTrackingDragGesture();
 #endif
+        // then fall through...
       case nsMouseEvent::eMiddleButton:
         SetClickCount(aPresContext, (nsMouseEvent*)aEvent, aStatus);
         break;
     }
     break;
   case NS_MOUSE_EXIT:
     // If the event is not a top-level window exit, then it's not
     // really an exit --- we may have traversed widget boundaries but
@@ -1200,16 +1202,17 @@ nsEventStateManager::PreHandleEvent(nsPr
         modifierMask |= NS_MODIFIER_META;
 
       // Prevent keyboard scrolling while an accesskey modifier is in use.
       if (modifierMask && (modifierMask == sChromeAccessModifier ||
                            modifierMask == sContentAccessModifier))
         HandleAccessKey(aPresContext, keyEvent, aStatus, nsnull,
                         eAccessKeyProcessingNormal, modifierMask);
     }
+    // then fall through...
   case NS_KEY_DOWN:
   case NS_KEY_UP:
     {
       nsIContent* content = GetFocusedContent();
       if (content)
         mCurrentTargetContent = content;
     }
     break;