fix for setcapture. passes events to the nsHTMLFrame's areaframe when events are trapped to a given frame's view.

git-svn-id: svn://10.0.0.236/trunk@65649 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mjudge%netscape.com
2000-04-12 03:04:11 +00:00
parent 5e5d2c2425
commit c25a8377d7
19 changed files with 401 additions and 120 deletions

View File

@@ -3399,7 +3399,7 @@ PresShell::HandleEvent(nsIView *aView,
rv = frame->GetFrameForPoint(mPresContext, eventPoint, NS_FRAME_PAINT_LAYER_BACKGROUND, &mCurrentEventFrame);
if (rv != NS_OK) {
// XXX Is this the right thing to do?
mCurrentEventFrame = nsnull;
mCurrentEventFrame = frame;
aHandled = PR_FALSE;
rv = NS_OK;
}
@@ -3421,8 +3421,9 @@ PresShell::HandleEvent(nsIView *aView,
if (rv != NS_OK) {
rv = frame->GetFrameForPoint(mPresContext, eventPoint, NS_FRAME_PAINT_LAYER_BACKGROUND, &mCurrentEventFrame);
if (rv != NS_OK) {
// XXX Is this the right thing to do?
mCurrentEventFrame = nsnull;
// XXX Is this the right thing to do? NO IT ISNT!
mCurrentEventFrame = frame;
//mCurrentEventFrame = nsnull;
aHandled = PR_FALSE;
rv = NS_OK;
}