Changeset 234989 in webkit
- Timestamp:
- Aug 17, 2018 11:09:39 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r234985 r234989 1 2018-08-17 Alex Christensen <achristensen@webkit.org> 2 3 Fix API tests after r234985 4 https://bugs.webkit.org/show_bug.cgi?id=188679 5 6 * UIProcess/API/C/WKPage.cpp: 7 (encodingOf): 8 (dataFrom): 9 The encoding of null strings had changed, which is no big deal because there's no data in that encoding, 10 but switching it back fixes the tests. 11 1 12 2018-08-17 Alex Christensen <achristensen@webkit.org> 2 13 -
trunk/Source/WebKit/UIProcess/API/C/WKPage.cpp
r234985 r234989 202 202 static String encodingOf(const String& string) 203 203 { 204 if (string.isNull() || string.is8Bit())205 " latin1"_s;206 return " utf-16"_s;204 if (string.isNull() || !string.is8Bit()) 205 "utf-16"_s; 206 return "latin1"_s; 207 207 } 208 208 209 209 static IPC::DataReference dataFrom(const String& string) 210 210 { 211 if (string.isNull() || string.is8Bit())212 return { reinterpret_cast<const uint8_t*>(string.characters 8()), string.length() * sizeof(LChar) };213 return { reinterpret_cast<const uint8_t*>(string.characters 16()), string.length() * sizeof(UChar) };211 if (string.isNull() || !string.is8Bit()) 212 return { reinterpret_cast<const uint8_t*>(string.characters16()), string.length() * sizeof(UChar) }; 213 return { reinterpret_cast<const uint8_t*>(string.characters8()), string.length() * sizeof(LChar) }; 214 214 } 215 215
Note: See TracChangeset
for help on using the changeset viewer.