Bug 719320 part.8-10 Remove the code handling legacy mouse events in layout r=smaug

This commit is contained in:
Masayuki Nakano 2012-08-12 10:42:36 +09:00
Родитель 6218b5fd40
Коммит 6c70546f8f
2 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -5659,10 +5659,8 @@ PresShell::HandleEvent(nsIFrame *aFrame,
NS_TIME_FUNCTION_MIN(1.0);
nsIContent* capturingContent =
NS_IS_MOUSE_EVENT(aEvent) ||
aEvent->eventStructType == NS_MOUSE_SCROLL_EVENT ||
aEvent->eventStructType == NS_WHEEL_EVENT ?
GetCapturingContent() : nullptr;
NS_IS_MOUSE_EVENT(aEvent) || aEvent->eventStructType == NS_WHEEL_EVENT ?
GetCapturingContent() : nullptr;
nsCOMPtr<nsIDocument> retargetEventDoc;
if (!aDontRetargetEvents) {

Просмотреть файл

@ -2105,7 +2105,8 @@ nsObjectFrame::HandleEvent(nsPresContext* aPresContext,
#ifdef XP_MACOSX
// we want to process some native mouse events in the cocoa event model
if ((anEvent->message == NS_MOUSE_ENTER || anEvent->message == NS_MOUSE_SCROLL) &&
if ((anEvent->message == NS_MOUSE_ENTER ||
anEvent->message == NS_WHEEL_WHEEL) &&
mInstanceOwner->GetEventModel() == NPEventModelCocoa) {
*anEventStatus = mInstanceOwner->ProcessEvent(*anEvent);
return rv;