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

Unified Diff: Tools/DumpRenderTree/chromium/TestShell.cpp

Issue 14975008: test-shell is outside of the screen when running layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@menupopup
Patch Set: Updated per tkent's comments Created 7 years, 7 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: Tools/DumpRenderTree/chromium/TestShell.cpp
diff --git a/Tools/DumpRenderTree/chromium/TestShell.cpp b/Tools/DumpRenderTree/chromium/TestShell.cpp
index 3b011a746e4ff8772233a7b6d11737ac197a7933..ab449292b1b955b458caa5dfa1331a09b951dd91 100644
--- a/Tools/DumpRenderTree/chromium/TestShell.cpp
+++ b/Tools/DumpRenderTree/chromium/TestShell.cpp
@@ -265,7 +265,7 @@ void TestShell::resizeWindowForTest(WebViewHost* window, const WebURL& url)
width = testWindowWidth;
height = testWindowHeight;
}
- window->setWindowRect(WebRect(0, 0, width + virtualWindowBorder * 2, height + virtualWindowBorder * 2));
+ window->setWindowRect(WebRect(window->screenUnavailabeBorder(), window->screenUnavailabeBorder(), width + virtualWindowBorder * 2, height + virtualWindowBorder * 2));
}
void TestShell::resetTestController()
« no previous file with comments | « no previous file | Tools/DumpRenderTree/chromium/WebViewHost.h » ('j') | Tools/DumpRenderTree/chromium/WebViewHost.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698