summaryrefslogtreecommitdiff
path: root/java/openjfx14/files/patch-modules_javafx.web_src_main_native_Tools_DumpRenderTree_TestRunner.cpp
blob: 79cb54ed55ad5fe8dbf360ab67e7e497be6deae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
https://github.com/WebKit/webkit/commit/35a79bf4c2e0ecb4a37e672de347a25254ea0601

* DumpRenderTree/TestRunner.cpp:
(TestRunner::runUIScript):
Manually convert between UChar and UniChar/unichar where needed.


--- modules/javafx.web/src/main/native/Tools/DumpRenderTree/TestRunner.cpp.orig	2020-07-19 19:13:03 UTC
+++ modules/javafx.web/src/main/native/Tools/DumpRenderTree/TestRunner.cpp
@@ -2463,7 +2463,7 @@ void TestRunner::runUIScript(JSContextRef context, JSS
     if (!m_UIScriptContext)
         m_UIScriptContext = makeUniqueWithoutFastMallocCheck<WTR::UIScriptContext>(*this);
 
-    String scriptString(JSStringGetCharactersPtr(script), JSStringGetLength(script));
+    String scriptString(reinterpret_cast<const UChar*>(JSStringGetCharactersPtr(script)), JSStringGetLength(script));
     m_UIScriptContext->runUIScript(scriptString, callbackID);
 }