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:
Ms2ger 2014-02-09 09:04:38 +01:00
parent 68ffc7141e
commit d241969030

View File

@ -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