Commit c757b385 authored by harrison's avatar harrison

Reviewed by Darin and Tim.

        <rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
        
        * page/mac/EventHandlerMac.mm:
        (WebCore::EventHandler::eventMayStartDrag):
        Add nil check of hitTest's result.innerNode().



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f03df1ae
2006-11-15 Timothy Hatcher <timothy@apple.com>
2006-11-16 David Harrison <harrison@apple.com>
Reviewed by Darin and Tim.
<rdar://problem/4799949> REGRESSION: Crash in FrameMac::eventMayStartDrag() by clicking on a page
* page/mac/EventHandlerMac.mm:
(WebCore::EventHandler::eventMayStartDrag):
Add nil check of hitTest's result.innerNode().
2006-11-16 Timothy Hatcher <timothy@apple.com>
Reviewed by Darin.
......@@ -524,7 +524,7 @@ bool EventHandler::eventMayStartDrag(NSEvent *event) const
HitTestResult result(mouseDownPos);
m_frame->renderer()->layer()->hitTest(request, result);
bool srcIsDHTML;
return result.innerNode()->renderer()->draggableNode(DHTMLFlag, UAFlag, mouseDownPos.x(), mouseDownPos.y(), srcIsDHTML);
return result.innerNode() && result.innerNode()->renderer()->draggableNode(DHTMLFlag, UAFlag, mouseDownPos.x(), mouseDownPos.y(), srcIsDHTML);
}
bool EventHandler::dragHysteresisExceeded(const FloatPoint& floatDragViewportLocation) const
......
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