mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove unnecessary event handling cases for NS_ACTIVATE/NS_DEACTIVATE in nsObjectFrame. b=526633 r=roc
This commit is contained in:
parent
deed34287c
commit
74eb1fe935
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user