Bug 1338086 - Remove useless else blocks in order to reduce complexity widget/ r=mstange

MozReview-Commit-ID: AjL8H7aHLkm

--HG--
extra : rebase_source : 29f7974567a43ae5b19b5b1c08de5c9ad12993ba
This commit is contained in:
Sylvestre Ledru 2017-02-09 10:58:25 +01:00
parent a54302b9d6
commit ce25a09be6

View File

@ -1215,21 +1215,22 @@ nsBaseWidget::DispatchInputEvent(WidgetInputEvent* aEvent)
uint64_t inputBlockId = 0;
ScrollableLayerGuid guid;
nsEventStatus result = mAPZC->ReceiveInputEvent(*aEvent, &guid, &inputBlockId);
nsEventStatus result =
mAPZC->ReceiveInputEvent(*aEvent, &guid, &inputBlockId);
if (result == nsEventStatus_eConsumeNoDefault) {
return result;
}
return ProcessUntransformedAPZEvent(aEvent, guid, inputBlockId, result);
} else {
}
WidgetWheelEvent* wheelEvent = aEvent->AsWheelEvent();
if (wheelEvent) {
RefPtr<Runnable> r = new DispatchWheelInputOnControllerThread(*wheelEvent, mAPZC, this);
RefPtr<Runnable> r =
new DispatchWheelInputOnControllerThread(*wheelEvent, mAPZC, this);
APZThreadUtils::RunOnControllerThread(r.forget());
return nsEventStatus_eConsumeDoDefault;
}
MOZ_CRASH();
}
}
nsEventStatus status;
DispatchEvent(aEvent, status);