Chromium Code Reviews| Index: Tools/DumpRenderTree/chromium/TestShell.cpp |
| diff --git a/Tools/DumpRenderTree/chromium/TestShell.cpp b/Tools/DumpRenderTree/chromium/TestShell.cpp |
| index 3b011a746e4ff8772233a7b6d11737ac197a7933..fb5a85ecc27e2c8abeb5e17ce7a0ca881d45ae2c 100644 |
| --- a/Tools/DumpRenderTree/chromium/TestShell.cpp |
| +++ b/Tools/DumpRenderTree/chromium/TestShell.cpp |
| @@ -72,6 +72,7 @@ using namespace std; |
| // Content area size for newly created windows. |
| static const int testWindowWidth = 800; |
| static const int testWindowHeight = 600; |
| +static const int testWindowMargin = 8; |
|
tkent
2013/05/13 21:24:03
should move screenUnavailableBorder in WebViewHost
|
| // The W3C SVG layout tests use a different size than the other layout tests. |
| static const int SVGTestWindowWidth = 480; |
| @@ -265,7 +266,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(testWindowMargin, testWindowMargin, width + virtualWindowBorder * 2, height + virtualWindowBorder * 2)); |
| } |
| void TestShell::resetTestController() |