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

Unified Diff: third_party/WebKit/Source/core/page/DragController.cpp

Issue 2719293002: Removed FrameHost::deviceScaleFactorDeprecated() (Closed)
Patch Set: Rebase Created 3 years, 10 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
Index: third_party/WebKit/Source/core/page/DragController.cpp
diff --git a/third_party/WebKit/Source/core/page/DragController.cpp b/third_party/WebKit/Source/core/page/DragController.cpp
index 052f0448b98d96bf119a7574803cb230dec43f2c..54e5835b4e620ee689908fe65b390d06c11409e9 100644
--- a/third_party/WebKit/Source/core/page/DragController.cpp
+++ b/third_party/WebKit/Source/core/page/DragController.cpp
@@ -46,7 +46,6 @@
#include "core/editing/commands/DragAndDropCommand.h"
#include "core/editing/serializers/Serialization.h"
#include "core/events/TextEvent.h"
-#include "core/frame/FrameHost.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/Settings.h"
@@ -1130,9 +1129,8 @@ bool DragController::startDrag(LocalFrame* src,
const IntRect& imageRect = hitTestResult.imageRect();
IntSize imageSizeInPixels = imageRect.size();
// TODO(oshima): Remove this scaling and simply pass imageRect to
- // dragImageForImage
- // once all platforms are migrated to use zoom for dsf.
- imageSizeInPixels.scale(src->host()->deviceScaleFactorDeprecated());
+ // dragImageForImage once all platforms are migrated to use zoom for dsf.
+ imageSizeInPixels.scale(src->page()->deviceScaleFactorDeprecated());
float screenDeviceScaleFactor =
src->page()->chromeClient().screenInfo().deviceScaleFactor;
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/web/InspectorOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698