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

Unified Diff: content/test/layouttest_support.cc

Issue 2290233007: Move convertViewportToWindow and convertWindowToViewport from (Closed)
Patch Set: add client to WebSharedWorkerImpl Created 4 years, 3 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: content/test/layouttest_support.cc
diff --git a/content/test/layouttest_support.cc b/content/test/layouttest_support.cc
index db1e755f125ecf4a8a10544c25cf5a5ee46be379..9f49145c770169e0facdf769ddaa612d0b1e4cda 100644
--- a/content/test/layouttest_support.cc
+++ b/content/test/layouttest_support.cc
@@ -390,9 +390,11 @@ void SetDeviceScaleFactor(RenderView* render_view, float factor) {
SetDeviceScaleFactorForTesting(factor);
}
-float GetWindowToViewportScale(RenderView* render_view) {
+float GetWindowToViewportScale(RenderFrame* render_frame) {
blink::WebFloatRect rect(0, 0, 1.0f, 0.0);
- static_cast<RenderViewImpl*>(render_view)->convertWindowToViewport(&rect);
+ static_cast<RenderFrameImpl*>(render_frame)
+ ->GetRenderWidget()
+ ->convertWindowToViewport(&rect);
return rect.width;
}
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.cc ('k') | third_party/WebKit/Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698