зеркало из https://github.com/mozilla/gecko-dev.git
Bug 920425 part.6 Use mozilla::WidgetEvent::AsScrollAreaEvent() r=smaug
This commit is contained in:
Родитель
9413fbbc10
Коммит
b4a347908a
|
@ -632,8 +632,7 @@ nsDOMEvent::DuplicatePrivateData()
|
||||||
}
|
}
|
||||||
case NS_SCROLLAREA_EVENT:
|
case NS_SCROLLAREA_EVENT:
|
||||||
{
|
{
|
||||||
InternalScrollAreaEvent* oldScrollAreaEvent =
|
InternalScrollAreaEvent* oldScrollAreaEvent = mEvent->AsScrollAreaEvent();
|
||||||
static_cast<InternalScrollAreaEvent*>(mEvent);
|
|
||||||
InternalScrollAreaEvent* scrollAreaEvent =
|
InternalScrollAreaEvent* scrollAreaEvent =
|
||||||
new InternalScrollAreaEvent(false, msg, nullptr);
|
new InternalScrollAreaEvent(false, msg, nullptr);
|
||||||
scrollAreaEvent->AssignScrollAreaEventData(*oldScrollAreaEvent, true);
|
scrollAreaEvent->AssignScrollAreaEventData(*oldScrollAreaEvent, true);
|
||||||
|
|
|
@ -700,7 +700,7 @@ nsEventDispatcher::CreateEvent(mozilla::dom::EventTarget* aOwner,
|
||||||
static_cast<WidgetGUIEvent*>(aEvent));
|
static_cast<WidgetGUIEvent*>(aEvent));
|
||||||
case NS_SCROLLAREA_EVENT:
|
case NS_SCROLLAREA_EVENT:
|
||||||
return NS_NewDOMScrollAreaEvent(aDOMEvent, aOwner, aPresContext,
|
return NS_NewDOMScrollAreaEvent(aDOMEvent, aOwner, aPresContext,
|
||||||
static_cast<InternalScrollAreaEvent*>(aEvent));
|
aEvent->AsScrollAreaEvent());
|
||||||
case NS_KEY_EVENT:
|
case NS_KEY_EVENT:
|
||||||
return NS_NewDOMKeyboardEvent(aDOMEvent, aOwner, aPresContext,
|
return NS_NewDOMKeyboardEvent(aDOMEvent, aOwner, aPresContext,
|
||||||
static_cast<WidgetKeyboardEvent*>(aEvent));
|
static_cast<WidgetKeyboardEvent*>(aEvent));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче