| 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 feef506085b26e1af002d0a26935b3959a10e939..c68ca5ed2dda62917a7dbd63fd4d2379fa71658c 100644
|
| --- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| +++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| @@ -217,7 +217,7 @@ void DataTransfer::setDragImage(Element* image, int x, int y)
|
| return;
|
|
|
| IntPoint location(x, y);
|
| - if (isHTMLImageElement(*image) && !image->inDocument())
|
| + if (isHTMLImageElement(*image) && !image->inShadowIncludingDocument())
|
| setDragImageResource(toHTMLImageElement(*image).cachedImage(), location);
|
| else
|
| setDragImageElement(image, location);
|
|
|