Bug 678708 - nsMathMLmactionFrame::MouseListener::HandleEvent may abort in debug mode; r=karlt
authorAtul Aggarwal <atulagrwl@gmail.com>
Wed, 31 Aug 2011 13:16:13 +0100
changeset 76322 256a8799fce7c45e5a6fe2e0eb59fadc70e63e1c
parent 76321 3ef046cd262245dacde049b8434345f715f964c1
child 76323 bf95c7aab462cac5d681fee9bac45a9196d0b8a4
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewerskarlt
bugs678708
milestone9.0a1
Bug 678708 - nsMathMLmactionFrame::MouseListener::HandleEvent may abort in debug mode; r=karlt
layout/mathml/nsMathMLmactionFrame.cpp
--- a/layout/mathml/nsMathMLmactionFrame.cpp
+++ b/layout/mathml/nsMathMLmactionFrame.cpp
@@ -377,17 +377,17 @@ ShowStatus(nsPresContext* aPresContext, 
 NS_IMETHODIMP
 nsMathMLmactionFrame::MouseListener::HandleEvent(nsIDOMEvent* aEvent)
 {
   nsAutoString eventType;
   aEvent->GetType(eventType);
   if (eventType.EqualsLiteral("mouseover")) {
     mOwner->MouseOver();
   }
-  else if (eventType.EqualsLiteral("mouseclick")) {
+  else if (eventType.EqualsLiteral("click")) {
     mOwner->MouseClick();
   }
   else if (eventType.EqualsLiteral("mouseout")) {
     mOwner->MouseOut();
   }
   else {
     NS_ABORT();
   }