2008-10-23 Darin Fisher <darin@chromium.org>
[WebKit-https.git] / WebCore / page / EventHandler.cpp
index dcb0aa243d1e192c5876a84974322731a7f36aae..8fba8abbca93b55946695b8c622e29a6d106f560 100644 (file)
@@ -677,6 +677,7 @@ void EventHandler::allowDHTMLDrag(bool& flagDHTML, bool& flagUA) const
     if (!m_frame || !m_frame->document()) {
         flagDHTML = false;
         flagUA = false;
+        return;
     }
     
     unsigned mask = m_frame->page()->dragController()->delegateDragSourceAction(m_frame->view()->contentsToWindow(m_mouseDownPos));