2011-05-26 Igor Oliveira <igor.oliveira@openbossa.org>

        Reviewed by Andreas Kling.

        drag-not-loaded-image.html test crashes when WebKit is built with debug option
        https://bugs.webkit.org/show_bug.cgi?id=61480

        Checks if image has content before starting to drag.

        * page/DragController.cpp:
        (WebCore::DragController::startDrag):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@87366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ea6d5317
2011-05-26 Igor Oliveira <igor.oliveira@openbossa.org>
Reviewed by Andreas Kling.
drag-not-loaded-image.html test crashes when WebKit is built with debug option
https://bugs.webkit.org/show_bug.cgi?id=61480
Checks if image has content before starting to drag.
* page/DragController.cpp:
(WebCore::DragController::startDrag):
2011-05-26 Alok Priyadarshi <alokp@chromium.org>
Reviewed by James Robinson.
......@@ -731,7 +731,7 @@ bool DragController::startDrag(Frame* src, const DragState& state, DragOperation
m_dragOffset = IntPoint(dragOrigin.x() - dragLoc.x(), dragOrigin.y() - dragLoc.y());
}
doSystemDrag(dragImage, dragLoc, dragOrigin, clipboard, src, false);
} else if (!imageURL.isEmpty() && node && node->isElementNode() && image
} else if (!imageURL.isEmpty() && node && node->isElementNode() && image && !image->isNull()
&& (m_dragSourceAction & DragSourceActionImage)) {
// We shouldn't be starting a drag for an image that can't provide an extension.
// This is an early detection for problems encountered later upon drop.
......
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