summaryrefslogtreecommitdiffstats
path: root/Tools/DumpRenderTree/chromium/WebViewHost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/DumpRenderTree/chromium/WebViewHost.cpp')
-rw-r--r--Tools/DumpRenderTree/chromium/WebViewHost.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/Tools/DumpRenderTree/chromium/WebViewHost.cpp b/Tools/DumpRenderTree/chromium/WebViewHost.cpp
index e3c8c28..849312c 100644
--- a/Tools/DumpRenderTree/chromium/WebViewHost.cpp
+++ b/Tools/DumpRenderTree/chromium/WebViewHost.cpp
@@ -235,7 +235,7 @@ WebView* WebViewHost::createView(WebFrame*, const WebWindowFeatures&, const WebS
{
if (!layoutTestController()->canOpenWindows())
return 0;
- return m_shell->createWebView()->webView();
+ return m_shell->createNewWindow(WebURL())->webView();
}
WebWidget* WebViewHost::createPopupMenu(WebPopupType)
@@ -410,11 +410,7 @@ bool WebViewHost::handleCurrentKeyboardEvent()
void WebViewHost::spellCheck(const WebString& text, int& misspelledOffset, int& misspelledLength)
{
// Check the spelling of the given text.
-#if OS(MAC_OS_X)
- // FIXME: rebaseline layout-test results of Windows and Linux so we
- // can enable this mock spellchecker on them.
m_spellcheck.spellCheckWord(text, &misspelledOffset, &misspelledLength);
-#endif
}
WebString WebViewHost::autoCorrectWord(const WebString&)
@@ -1133,10 +1129,6 @@ WebViewHost::~WebViewHost()
loadURLForFrame(GURL("about:blank"), WebString());
}
- // Call GC twice to clean up garbage.
- m_shell->callJSGC();
- m_shell->callJSGC();
-
webWidget()->close();
if (m_inModalLoop)