| Index: third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/ChromeClientImpl.cpp b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| index 9a15330d50765bcedde5fba60c91fe238ad266b7..328e4a8b8b8ceafe74bb58a03a7bac3b470177b5 100644
|
| --- a/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/ChromeClientImpl.cpp
|
| @@ -260,7 +260,14 @@ void ChromeClientImpl::startDragging(LocalFrame* frame,
|
| WebDragOperationsMask mask,
|
| const WebImage& dragImage,
|
| const WebPoint& dragImageOffset) {
|
| - m_webView->startDragging(frame, dragData, mask, dragImage, dragImageOffset);
|
| + WebLocalFrameImpl* webFrame = WebLocalFrameImpl::fromFrame(frame);
|
| + if (!webFrame->localRoot()->frameWidget() ||
|
| + !webFrame->localRoot()->frameWidget()->client()) {
|
| + return;
|
| + }
|
| + m_webView->m_doingDragAndDrop = true;
|
| + webFrame->localRoot()->frameWidget()->client()->startDragging(
|
| + webFrame, dragData, mask, dragImage, dragImageOffset);
|
| }
|
|
|
| bool ChromeClientImpl::acceptsLoadDrops() const {
|
|
|