Bug 539423 - Remove bogus assertion: Mouse move must have some target content. r=Olli.Pettay.
authorHenri Sivonen <hsivonen@iki.fi>
Thu, 14 Jan 2010 15:58:33 +0200
changeset 37190 95b290937988ae4b9d51c123288dfba47628b4a4
parent 37189 9d8e4ec8214dc8fe5a0c20d25a677a793b5bf642
child 37191 8bd09155ca14ff19e1f04bbc9ecbac6ea1e7ec37
push idunknown
push userunknown
push dateunknown
reviewersOlli.Pettay
bugs539423
milestone1.9.3a1pre
Bug 539423 - Remove bogus assertion: Mouse move must have some target content. r=Olli.Pettay.
content/events/src/nsEventStateManager.cpp
--- a/content/events/src/nsEventStateManager.cpp
+++ b/content/events/src/nsEventStateManager.cpp
@@ -3557,17 +3557,16 @@ nsEventStateManager::GenerateMouseEnterE
       nsCOMPtr<nsIContent> targetElement;
       GetEventTargetContent(aEvent, getter_AddRefs(targetElement));
       if (!targetElement) {
         // We're always over the document root, even if we're only
         // over dead space in a page (whose frame is not associated with
         // any content) or in print preview dead space
         targetElement = mDocument->GetRootContent();
       }
-      NS_ASSERTION(targetElement, "Mouse move must have some target content");
       if (targetElement) {
         NotifyMouseOver(aEvent, targetElement);
       }
     }
     break;
   case NS_MOUSE_EXIT:
     {
       // This is actually the window mouse exit event. We're not moving