Bug 895274 part.3 Make the enum of event messages a named enum IGNORE IDL r=smaug

This commit is contained in:
Masayuki Nakano
2015-08-26 21:56:59 +09:00
parent 9d598cf7d2
commit d36f87a852
123 changed files with 716 additions and 466 deletions

View File

@@ -403,7 +403,7 @@ nsBaseDragService::FireDragEventAtSource(uint32_t aMsg)
nsCOMPtr<nsIPresShell> presShell = doc->GetShell();
if (presShell) {
nsEventStatus status = nsEventStatus_eIgnore;
WidgetDragEvent event(true, aMsg, nullptr);
WidgetDragEvent event(true, static_cast<EventMessage>(aMsg), nullptr);
event.inputSource = mInputSource;
if (aMsg == NS_DRAGDROP_END) {
event.refPoint.x = mEndDragPoint.x;