| Index: Source/testing/runner/TestRunner.cpp
|
| diff --git a/Source/testing/runner/TestRunner.cpp b/Source/testing/runner/TestRunner.cpp
|
| index 8a0aad593147dbbf89e6c7c519eb351dd6b92677..d0bbf8b6c2d172e7bd5a7fc4fe8bec684e739a13 100644
|
| --- a/Source/testing/runner/TestRunner.cpp
|
| +++ b/Source/testing/runner/TestRunner.cpp
|
| @@ -1289,12 +1289,9 @@ void TestRunner::addUserStyleSheet(const CppArgumentList& arguments, CppVariant*
|
| result->setNull();
|
| if (arguments.size() < 2 || !arguments[0].isString() || !arguments[1].isBool())
|
| return;
|
| - WebView::addUserStyleSheet(
|
| + WebView::injectStyleSheet(
|
| cppVariantToWebString(arguments[0]), WebVector<WebString>(),
|
| - arguments[1].toBoolean() ? WebView::UserContentInjectInAllFrames : WebView::UserContentInjectInTopFrameOnly,
|
| - // Chromium defaults to InjectInSubsequentDocuments, but for compatibility
|
| - // with the other ports' DRTs, we use UserStyleInjectInExistingDocuments.
|
| - WebView::UserStyleInjectInExistingDocuments);
|
| + arguments[1].toBoolean() ? WebView::InjectStyleInAllFrames : WebView::InjectStyleInTopFrameOnly);
|
| }
|
|
|
| void TestRunner::startSpeechInput(const CppArgumentList& arguments, CppVariant* result)
|
|
|