Bug 305944. Fix handling of event clipping regression. r+sr=roc, patch by Eli Friedman

This commit is contained in:
roc+%cs.cmu.edu 2005-08-31 23:06:39 +00:00
Родитель 0e9399d843
Коммит 9711031a79
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -5957,7 +5957,7 @@ PresShell::HandleEvent(nsIView *aView,
} }
} }
else if (!InClipRect(frame, 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 // 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. // 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 // Furthermore if the event is not in the clip for this frame, then none