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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.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/frame/LocalFrame.cpp
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.cpp b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
index 27b221b83891e80802f5c1a36fa1fba6143ba5f3..1e5adcc8c1ccd5ec3a86ff330350f64484009c13 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.cpp
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.cpp
@@ -120,7 +120,7 @@ class DragImageBuilder {
// TODO(oshima): Remove this when all platforms are migrated to
// use-zoom-for-dsf.
float deviceScaleFactor =
- m_localFrame->host()->deviceScaleFactorDeprecated();
+ m_localFrame->page()->deviceScaleFactorDeprecated();
float pageScaleFactor = m_localFrame->host()->visualViewport().scale();
m_bounds.setWidth(m_bounds.width() * deviceScaleFactor * pageScaleFactor);
m_bounds.setHeight(m_bounds.height() * deviceScaleFactor * pageScaleFactor);
@@ -714,7 +714,7 @@ double LocalFrame::devicePixelRatio() const {
if (!m_host)
return 0;
- double ratio = m_host->deviceScaleFactorDeprecated();
+ double ratio = m_host->page().deviceScaleFactorDeprecated();
ratio *= pageZoomFactor();
return ratio;
}
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameHost.cpp ('k') | third_party/WebKit/Source/core/page/DragController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698