summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp')
-rw-r--r--third_party/WebKit/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/third_party/WebKit/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp b/third_party/WebKit/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
index 98af68e..45d4a2d 100644
--- a/third_party/WebKit/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
+++ b/third_party/WebKit/WebKitTools/DumpRenderTree/win/LayoutTestControllerWin.cpp
@@ -41,7 +41,6 @@
#include <JavaScriptCore/Assertions.h>
#include <JavaScriptCore/JavaScriptCore.h>
#include <JavaScriptCore/JSRetainPtr.h>
-#include <JavaScriptCore/JSStringRefBSTR.h>
#include <WebKit/WebKit.h>
#include <string>
#include <CoreFoundation/CoreFoundation.h>
@@ -659,24 +658,3 @@ bool LayoutTestController::pauseTransitionAtTimeOnElementWithId(JSStringRef prop
{
return false; // FIXME: Implement this on Windows
}
-
-void LayoutTestController::overridePreference(JSStringRef key, JSStringRef flag)
-{
- COMPtr<IWebView> webView;
- if (FAILED(frame->webView(&webView)))
- return;
-
- COMPtr<IWebPreferences> preferences;
- if (FAILED(webView->preferences(&preferences)))
- return;
-
- COMPtr<IWebPreferencesPrivate> prefsPrivate(Query, preferences);
- if (!prefsPrivate)
- return;
-
- BSTR keyBSTR = JSStringCopyBSTR(key);
- BSTR flagBSTR = JSStringCopyBSTR(flag);
- prefsPrivate->overridePreference(keyBSTR, flagBSTR);
- SysFreeString(keyBSTR);
- SysFreeString(flagBSTR);
-}