Bug 468421 Fix assertion to include other valid cases r+sr=roc (debug-only code)
authorNeil Rashbrook <neil@parkwaycc.co.uk>
Wed, 10 Dec 2008 12:46:02 +0000
changeset 22564 b88bc6127dcae50e47dbf140ca91b81186614df2
parent 22563 ee854712776851b3697fb6b6a2b2929d7c1a7d2b
child 22565 4897aa66c45cb9d90b80b864f82990f1e3a70117
push idunknown
push userunknown
push dateunknown
bugs468421
milestone1.9.2a1pre
Bug 468421 Fix assertion to include other valid cases r+sr=roc (debug-only code)
layout/generic/nsObjectFrame.cpp
--- a/layout/generic/nsObjectFrame.cpp
+++ b/layout/generic/nsObjectFrame.cpp
@@ -3732,16 +3732,18 @@ nsEventStatus nsPluginInstanceOwner::Pro
       if (pPluginEvent) {
         // Make event coordinates relative to our enclosing widget,
         // not the widget they were received on.
         // See use of nsPluginEvent in widget/src/windows/nsWindow.cpp
         // for why this assert should be safe
         NS_ASSERTION(anEvent.message == NS_MOUSE_BUTTON_DOWN ||
                      anEvent.message == NS_MOUSE_BUTTON_UP ||
                      anEvent.message == NS_MOUSE_DOUBLECLICK ||
+                     anEvent.message == NS_MOUSE_ENTER_SYNTH ||
+                     anEvent.message == NS_MOUSE_EXIT_SYNTH ||
                      anEvent.message == NS_MOUSE_MOVE,
                      "Incorrect event type for coordinate translation");
         nsPoint pt = nsLayoutUtils::GetEventCoordinatesRelativeTo(&anEvent, mOwner);
         nsPresContext* presContext = mOwner->PresContext();
         nsIntPoint ptPx(presContext->AppUnitsToDevPixels(pt.x),
                         presContext->AppUnitsToDevPixels(pt.y));
         nsIntPoint widgetPtPx = ptPx + mOwner->GetWindowOriginInPixels(PR_TRUE);
         pPluginEvent->lParam = MAKELPARAM(widgetPtPx.x, widgetPtPx.y);