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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1456753002: Compute the popup location/size correctly when use-zoom-for-dsf is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update TestExpectations Created 5 years 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/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index c3a2eb5ade95c60d6586ab8cae7bc6b1bc5e8224..d23ce6ed20505b82ffb2102d1de7dea4a1a6b16a 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -520,6 +520,11 @@ void BlinkTestRunner::SetDeviceScaleFactor(float factor) {
Send(new ShellViewHostMsg_SetDeviceScaleFactor(routing_id(), factor));
}
+void BlinkTestRunner::EnableUseZoomForDSF() {
+ base::CommandLine::ForCurrentProcess()->
+ AppendSwitch(switches::kEnableUseZoomForDSF);
+}
+
void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) {
content::SetDeviceColorProfile(render_view(), name);
}
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698