Remove unnecessary event handling cases for NS_ACTIVATE/NS_DEACTIVATE in nsObjectFrame. b=526633 r=roc

This commit is contained in:
Josh Aas 2009-11-10 16:54:29 -05:00
parent deed34287c
commit 74eb1fe935

View File

@ -1861,20 +1861,12 @@ nsObjectFrame::HandleEvent(nsPresContext* aPresContext,
}
#endif
switch (anEvent->message) {
case NS_DESTROY:
if (anEvent->message == NS_DESTROY) {
mInstanceOwner->CancelTimer();
break;
case NS_ACTIVATE:
case NS_DEACTIVATE:
*anEventStatus = mInstanceOwner->ProcessEvent(*anEvent);
break;
default:
rv = nsObjectFrameSuper::HandleEvent(aPresContext, anEvent, anEventStatus);
return rv;
}
return rv;
return nsObjectFrameSuper::HandleEvent(aPresContext, anEvent, anEventStatus);
}
nsresult