mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 969331 - Part a: Remove the nsresult return value from nsEventTargetChainItem::PreHandleEvent; r=smaug
No caller actually looks at the return value.
This commit is contained in:
parent
68ffc7141e
commit
d241969030
@ -24,6 +24,7 @@
|
||||
#include "mozilla/MutationEvent.h"
|
||||
#include "mozilla/TextEvents.h"
|
||||
#include "mozilla/TouchEvents.h"
|
||||
#include "mozilla/unused.h"
|
||||
|
||||
using namespace mozilla;
|
||||
using namespace mozilla::dom;
|
||||
@ -163,7 +164,7 @@ public:
|
||||
* Resets aVisitor object and calls PreHandleEvent.
|
||||
* Copies mItemFlags and mItemData to the current nsEventTargetChainItem.
|
||||
*/
|
||||
nsresult PreHandleEvent(nsEventChainPreVisitor& aVisitor);
|
||||
void PreHandleEvent(nsEventChainPreVisitor& aVisitor);
|
||||
|
||||
/**
|
||||
* If the current item in the event target chain has an event listener
|
||||
@ -218,17 +219,16 @@ nsEventTargetChainItem::nsEventTargetChainItem(EventTarget* aTarget)
|
||||
MOZ_ASSERT(!aTarget || mTarget == aTarget->GetTargetForEventTargetChain());
|
||||
}
|
||||
|
||||
nsresult
|
||||
void
|
||||
nsEventTargetChainItem::PreHandleEvent(nsEventChainPreVisitor& aVisitor)
|
||||
{
|
||||
aVisitor.Reset();
|
||||
nsresult rv = mTarget->PreHandleEvent(aVisitor);
|
||||
unused << mTarget->PreHandleEvent(aVisitor);
|
||||
SetForceContentDispatch(aVisitor.mForceContentDispatch);
|
||||
SetWantsWillHandleEvent(aVisitor.mWantsWillHandleEvent);
|
||||
SetMayHaveListenerManager(aVisitor.mMayHaveListenerManager);
|
||||
mItemFlags = aVisitor.mItemFlags;
|
||||
mItemData = aVisitor.mItemData;
|
||||
return rv;
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
Loading…
Reference in New Issue
Block a user