1
+ diff -aur target-org/webkit/CMakeLists.txt target/webkit/CMakeLists.txt
2
+ --- target-org/webkit/CMakeLists.txt 2017-12-22 19:18:43.000000000 +0200
3
+ +++ target/webkit/CMakeLists.txt 2018-06-14 15:41:59.000000000 +0300
4
+ @@ -170,13 +170,13 @@
5
+ add_subdirectory(Tools)
6
+ endif ()
7
+
8
+ - if ("${PORT}" STREQUAL "GTK" OR "${PORT}" STREQUAL "WPE")
9
+ - if (DEVELOPER_MODE)
10
+ - add_subdirectory(PerformanceTests)
11
+ - endif ()
12
+ - else ()
13
+ - add_subdirectory(PerformanceTests)
14
+ - endif ()
15
+ + #if ("${PORT}" STREQUAL "GTK" OR "${PORT}" STREQUAL "WPE")
16
+ + # if (DEVELOPER_MODE)
17
+ + # add_subdirectory(PerformanceTests)
18
+ + # endif ()
19
+ + #else ()
20
+ + # add_subdirectory(PerformanceTests)
21
+ + #endif ()
22
+
23
+ # -----------------------------------------------------------------------------
24
+ # Print the features list last, for maximum visibility.
1
25
diff -aur target-org/webkit/Source/bmalloc/bmalloc/DebugHeap.cpp target/webkit/Source/bmalloc/bmalloc/DebugHeap.cpp
2
26
--- target-org/webkit/Source/bmalloc/bmalloc/DebugHeap.cpp 2017-02-03 22:59:08.000000000 +0100
3
27
+++ target/webkit/Source/bmalloc/bmalloc/DebugHeap.cpp 2017-08-02 10:07:11.000383124 +0200
@@ -88,19 +112,17 @@ diff -aur target-org/webkit/Source/JavaScriptCore/CMakeLists.txt target/webkit/S
88
112
89
113
# Force staging of shared scripts, even if they aren't directly used to build JavaScriptCore.
90
114
91
- diff -aur target-org/webkit/Source/WTF/wtf/PlatformUserPreferredLanguagesUnix .cpp target/webkit/Source/WTF/wtf/PlatformUserPreferredLanguagesUnix .cpp
92
- --- target-org/webkit/Source/WTF/wtf/PlatformUserPreferredLanguagesUnix .cpp 2016-10 -08 05:31:15 .000000000 +0200
93
- +++ target/webkit/Source/WTF/wtf/PlatformUserPreferredLanguagesUnix .cpp 2017-07-11 11:34:55.962374878 +0200
94
- @@ -24,24 +24,29 @@
115
+ diff -aur target-org/webkit/Source/WTF/wtf/unix/LanguageUnix .cpp target/webkit/Source/WTF/wtf/unix/LanguageUnix .cpp
116
+ --- target-org/webkit/Source/WTF/wtf/unix/LanguageUnix .cpp 2017-09 -08 02:11:21 .000000000 +0300
117
+ +++ target/webkit/Source/WTF/wtf/unix/LanguageUnix .cpp 2018-06-14 15:41:18.000000000 +0300
118
+ @@ -24,22 +24,25 @@
95
119
#include <locale.h>
96
120
#include <wtf/Vector.h>
97
121
#include <wtf/text/WTFString.h>
98
122
+ #include <sys/system_properties.h>
99
-
123
+
100
124
namespace WTF {
101
-
102
- void setPlatformUserPreferredLanguagesChangedCallback(void (*)()) { }
103
-
125
+
104
126
- // Using pango_language_get_default() here is not an option, because
105
127
- // it doesn't support changing the locale in runtime, so it returns
106
128
- // always the same value.
@@ -109,26 +131,25 @@ diff -aur target-org/webkit/Source/WTF/wtf/PlatformUserPreferredLanguagesUnix.cp
109
131
- String localeDefault(setlocale(LC_CTYPE, nullptr));
110
132
- if (localeDefault.isEmpty() || equalIgnoringASCIICase(localeDefault, "C") || equalIgnoringASCIICase(localeDefault, "POSIX"))
111
133
+ char buf[2 * (PROP_VALUE_MAX + 1)];
112
- +
113
134
+ int locale_len = __system_property_get("persist.sys.locale", buf);
114
135
+ if (locale_len == 0) {
115
136
+ int lang_len = __system_property_get("persist.sys.language", buf);
116
137
+ if(lang_len == 0) {
117
138
return ASCIILiteral("en-US");
139
+ -
140
+ - String normalizedDefault = localeDefault;
141
+ - normalizedDefault.replace('_', '-');
142
+ - normalizedDefault.truncate(normalizedDefault.find('.'));
143
+ - return normalizedDefault;
118
144
+ }
119
145
+ int country_len = __system_property_get("persist.sys.country", buf + lang_len + 1);
120
146
+ if(country_len != 0) {
121
147
+ buf[lang_len] = '-';
122
148
+ }
123
149
+ }
124
-
125
- - String normalizedDefault = localeDefault;
126
- - normalizedDefault.replace('_', '-');
127
- - normalizedDefault.truncate(normalizedDefault.find('.'));
128
- - return normalizedDefault;
129
150
+ return String(buf);
130
151
}
131
-
152
+
132
153
Vector<String> platformUserPreferredLanguages()
133
154
diff -aur target-org/webkit/Source/WTF/wtf/StackTrace.cpp target/webkit/Source/WTF/wtf/StackTrace.cpp
134
155
--- target-org/webkit/Source/WTF/wtf/StackTrace.cpp 2017-04-25 04:53:49.000000000 +0200
0 commit comments