| Index: third_party/WebKit/Source/web/DragClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/DragClientImpl.cpp b/third_party/WebKit/Source/web/DragClientImpl.cpp
|
| index 838fc0d9606e64b9cae58462177ecabd34fa1b16..052a6333ae84b046747098798bf474f6399ddce0 100644
|
| --- a/third_party/WebKit/Source/web/DragClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/DragClientImpl.cpp
|
| @@ -69,9 +69,11 @@ void DragClientImpl::startDrag(DragImage* dragImage, const IntPoint& dragImageOr
|
|
|
| if (dragImage) {
|
| float resolutionScale = dragImage->resolutionScale();
|
| - if (m_webView->deviceScaleFactor() != resolutionScale) {
|
| + float deviceScaleFactor =
|
| + m_webView->client()->screenInfo().deviceScaleFactor;
|
| + if (deviceScaleFactor != resolutionScale) {
|
| ASSERT(resolutionScale > 0);
|
| - float scale = m_webView->deviceScaleFactor() / resolutionScale;
|
| + float scale = deviceScaleFactor / resolutionScale;
|
| dragImage->scale(scale, scale);
|
| }
|
| image = dragImage->bitmap();
|
|
|