Commit 5c416242 authored by sfalken@apple.com's avatar sfalken@apple.com

Set up global native controls flag before creating the first WebView.

        
        Reviewed by Darin Adler.

        * DumpRenderTree/win/DumpRenderTree.cpp:
        (main):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e896e504
2009-06-21 Steve Falkenburg <sfalken@apple.com>
Set up global native controls flag before creating the first WebView.
Reviewed by Darin Adler.
* DumpRenderTree/win/DumpRenderTree.cpp:
(main):
2009-06-21 Mark Rowe <mrowe@apple.com>
Reviewed by Sam Weinig.
......
......@@ -1102,6 +1102,12 @@ int main(int argc, char* argv[])
sharedEditingDelegate.adoptRef(new EditingDelegate);
sharedResourceLoadDelegate.adoptRef(new ResourceLoadDelegate);
// FIXME - need to make DRT pass with Windows native controls <http://bugs.webkit.org/show_bug.cgi?id=25592>
COMPtr<IWebPreferencesPrivate> tmpPreferences;
if (FAILED(WebKitCreateInstance(CLSID_WebPreferences, 0, IID_IWebPreferencesPrivate, reinterpret_cast<void**>(&tmpPreferences))))
return -1;
tmpPreferences->setShouldPaintNativeControls(TRUE);
COMPtr<IWebView> webView(AdoptCOM, createWebViewAndOffscreenWindow(&webViewWindow));
if (!webView)
return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment