| Index: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| index 4beaad34b3f3524c2a04c12de36da84e331b6c2c..ae8a6a4d8f6794a56f3d2ee4f46b174710529942 100644
|
| --- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| +++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| @@ -218,7 +218,7 @@ void DataTransfer::setDragImage(Element* image, int x, int y)
|
| return;
|
|
|
| IntPoint location(x, y);
|
| - if (isHTMLImageElement(*image) && !image->inShadowIncludingDocument())
|
| + if (isHTMLImageElement(*image) && !image->isConnected())
|
| setDragImageResource(toHTMLImageElement(*image).cachedImage(), location);
|
| else
|
| setDragImageElement(image, location);
|
|
|