Commit 3b86bc07 authored by thatcher's avatar thatcher

Reviewed by Tim H.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9664
          REGRESSION (r15106): Crash in fast/events/mouseover-mouseout2.html

        * page/FrameView.cpp:
        (WebCore::FrameView::handleMouseMoveEvent): Added a check that oldSubframe is
        still a subframe of the view's frame before passing the event to it.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a6df3ece
2006-06-30 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed by Tim H.
- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9664
REGRESSION (r15106): Crash in fast/events/mouseover-mouseout2.html
* page/FrameView.cpp:
(WebCore::FrameView::handleMouseMoveEvent): Added a check that oldSubframe is
still a subframe of the view's frame before passing the event to it.
2006-06-29 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
......
......@@ -30,6 +30,7 @@
#include "Cursor.h"
#include "EventNames.h"
#include "Frame.h"
#include "FrameTree.h"
#include "HTMLDocument.h"
#include "HTMLFrameSetElement.h"
#include "HTMLInputElement.h"
......@@ -688,7 +689,7 @@ void FrameView::handleMouseMoveEvent(const PlatformMouseEvent& mouseEvent)
MouseEventWithHitTestResults mev = prepareMouseEvent(d->mousePressed && m_frame->mouseDownMayStartSelect(),
d->mousePressed, true, mouseEvent);
if (d->oldSubframe)
if (d->oldSubframe && d->oldSubframe->tree()->isDescendantOf(m_frame.get()))
m_frame->passSubframeEventToSubframe(mev, d->oldSubframe.get());
bool swallowEvent = dispatchMouseEvent(mousemoveEvent, mev.targetNode(), false, 0, mouseEvent, true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment