| Index: content/shell/webkit_test_controller.cc
|
| diff --git a/content/shell/webkit_test_controller.cc b/content/shell/webkit_test_controller.cc
|
| index af585b6c83ca742ba988f54d3b63e98ac0e6515f..d1f93f635fedae911ef88a641107d3b1dc0a1335 100644
|
| --- a/content/shell/webkit_test_controller.cc
|
| +++ b/content/shell/webkit_test_controller.cc
|
| @@ -163,12 +163,16 @@ bool WebKitTestController::PrepareForLayoutTest(
|
| content::ShellBrowserContext* browser_context =
|
| static_cast<content::ShellContentBrowserClient*>(
|
| content::GetContentClient()->browser())->browser_context();
|
| + gfx::Size initial_size;
|
| + // The W3C SVG layout tests use a different size than the other layout tests.
|
| + if (test_url.spec().find("W3C-SVG-1.1") != std::string::npos)
|
| + initial_size = gfx::Size(480, 360);
|
| main_window_ = content::Shell::CreateNewWindow(
|
| browser_context,
|
| GURL(),
|
| NULL,
|
| MSG_ROUTING_NONE,
|
| - NULL);
|
| + initial_size);
|
| WebContentsObserver::Observe(main_window_->web_contents());
|
| main_window_->LoadURL(test_url);
|
| if (test_url.spec().find("/dumpAsText/") != std::string::npos ||
|
|
|