From 394810d3af8cf469e826e1002c9d74b9ec9946c0 Mon Sep 17 00:00:00 2001 From: "roc+%cs.cmu.edu" Date: Wed, 31 Aug 2005 23:06:39 +0000 Subject: [PATCH] Bug 305944. Fix handling of event clipping regression. r+sr=roc, patch by Eli Friedman git-svn-id: svn://10.0.0.236/trunk@179444 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresShell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index cb304554627..4a7f36d20af 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -5957,7 +5957,7 @@ PresShell::HandleEvent(nsIView *aView, } } else if (!InClipRect(frame, - nsLayoutUtils::GetEventCoordinatesForNearestView(aEvent, frame))) { + nsLayoutUtils::GetEventCoordinatesRelativeTo(aEvent, frame))) { // we only check for the clip rect on this frame ... all frames with clip // have views so any viewless children of this frame cannot have clip. // Furthermore if the event is not in the clip for this frame, then none