Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(299)

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.cpp

Issue 2081913002: Use correct scale factor value to scale drag image (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use correct scale factor value to scale drag image Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 0b905f9a7de1aa1979980029b5f49d369558d4f8..1fad3a81fbf3d0e3dc5ff920dc9cf06da3673fb5 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -109,8 +109,8 @@ public:
{
if (m_draggedNode && m_draggedNode->layoutObject())
m_draggedNode->layoutObject()->updateDragState(true);
- float deviceScaleFactor = m_localFrame->host()->chromeClient().screenInfo().deviceScaleFactor;
-
+ // TODO(oshima): Remove this when all platforms are migrated to use-zoom-for-dsf.
+ float deviceScaleFactor = m_localFrame->host()->deviceScaleFactorDeprecated();
m_bounds.setWidth(m_bounds.width() * deviceScaleFactor);
m_bounds.setHeight(m_bounds.height() * deviceScaleFactor);
m_pictureBuilder = adoptPtr(new SkPictureBuilder(SkRect::MakeIWH(m_bounds.width(), m_bounds.height())));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698