mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
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:
parent
a54302b9d6
commit
ce25a09be6
@ -1215,20 +1215,21 @@ 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 result;
|
||||
}
|
||||
return ProcessUntransformedAPZEvent(aEvent, guid, inputBlockId, result);
|
||||
} else {
|
||||
WidgetWheelEvent* wheelEvent = aEvent->AsWheelEvent();
|
||||
if (wheelEvent) {
|
||||
RefPtr<Runnable> r = new DispatchWheelInputOnControllerThread(*wheelEvent, mAPZC, this);
|
||||
APZThreadUtils::RunOnControllerThread(r.forget());
|
||||
return nsEventStatus_eConsumeDoDefault;
|
||||
}
|
||||
MOZ_CRASH();
|
||||
}
|
||||
WidgetWheelEvent* wheelEvent = aEvent->AsWheelEvent();
|
||||
if (wheelEvent) {
|
||||
RefPtr<Runnable> r =
|
||||
new DispatchWheelInputOnControllerThread(*wheelEvent, mAPZC, this);
|
||||
APZThreadUtils::RunOnControllerThread(r.forget());
|
||||
return nsEventStatus_eConsumeDoDefault;
|
||||
}
|
||||
MOZ_CRASH();
|
||||
}
|
||||
|
||||
nsEventStatus status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user