checked in wrong file, sorry

git-svn-id: svn://10.0.0.236/trunk@152941 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2004-02-19 13:23:46 +00:00
parent 8ea620c210
commit 47153f97aa
2 changed files with 22 additions and 20 deletions

View File

@@ -6098,22 +6098,14 @@ PresShell::HandleEventInternal(nsEvent* aEvent, nsIView *aView,
}
}
// Continue with second dispatch to system event handlers.
// Stopping propagation in the default group does not affect
// propagation in the system event group.
// (see also section 1.2.2.6 of the DOM3 Events Working Draft)
aEvent->flags &= ~NS_EVENT_FLAG_STOP_DISPATCH;
// 3. Give event to the Frames for browser default processing.
// XXX The event isn't translated into the local coordinate space
// of the frame...
if (aEvent->eventStructType != NS_EVENT && GetCurrentEventFrame()) {
rv = mCurrentEventFrame->HandleEvent(mPresContext, (nsGUIEvent*)aEvent,
aStatus);
}
// Continue with second dispatch to system event handlers.
// Need to null check mCurrentEventContent and mCurrentEventFrame
// since the previous dispatch could have nuked them.
if (mCurrentEventContent) {
@@ -6132,6 +6124,15 @@ PresShell::HandleEventInternal(nsEvent* aEvent, nsIView *aView,
}
}
// 3. Give event to the Frames for browser default processing.
// XXX The event isn't translated into the local coordinate space
// of the frame...
if (GetCurrentEventFrame() && NS_SUCCEEDED (rv) &&
aEvent->eventStructType != NS_EVENT) {
rv = mCurrentEventFrame->HandleEvent(mPresContext, (nsGUIEvent*)aEvent,
aStatus);
}
// 4. Give event to event manager for post event state changes and
// generation of synthetic events.
if (NS_SUCCEEDED (rv) &&