Changeset 132507 in webkit
- Timestamp:
- Oct 25, 2012, 11:40:53 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSStringRef.cpp
r131836 r132507 48 48 UChar* p = buffer.data(); 49 49 bool sourceIsAllASCII; 50 const LChar* stringStart = reinterpret_cast<const LChar*>(string); 50 51 if (conversionOK == convertUTF8ToUTF16(&string, string + length, &p, p + length, &sourceIsAllASCII)) { 51 52 if (sourceIsAllASCII) 52 return OpaqueJSString::create( reinterpret_cast<const LChar*>(string), length).leakRef();53 return OpaqueJSString::create(stringStart, length).leakRef(); 53 54 return OpaqueJSString::create(buffer.data(), p - buffer.data()).leakRef(); 54 55 } -
trunk/Source/JavaScriptCore/ChangeLog
r132499 r132507 1 2012-10-25 Michael Saboff <msaboff@apple.com> 2 3 REGRESSION (r131836): failures in list styles tests on EFL, GTK 4 https://bugs.webkit.org/show_bug.cgi?id=99824 5 6 Reviewed by Oliver Hunt. 7 8 Saved start of string since it is modified by call convertUTF8ToUTF16(). 9 10 * API/JSStringRef.cpp: 11 (JSStringCreateWithUTF8CString): 12 1 13 2012-10-24 Filip Pizlo <fpizlo@apple.com> 2 14 -
trunk/Source/WTF/ChangeLog
r132498 r132507 1 2012-10-25 Michael Saboff <msaboff@apple.com> 2 3 REGRESSION (r131836): failures in list styles tests on EFL, GTK 4 https://bugs.webkit.org/show_bug.cgi?id=99824 5 6 Reviewed by Oliver Hunt. 7 8 Fixed ASCII check. 9 Added placeholder argument for new argument added to convertUTF8ToUTF16() in http://trac.webkit.org/changeset/131836. 10 11 * wtf/unicode/UTF8.cpp: 12 (WTF::Unicode::convertUTF8ToUTF16): 13 * wtf/unicode/glib/UnicodeGLib.cpp: 14 (WTF::Unicode::convertCase): 15 1 16 2012-10-25 Christophe Dumez <christophe.dumez@intel.com> 2 17 -
trunk/Source/WTF/wtf/unicode/UTF8.cpp
r131836 r132507 364 364 365 365 if (sourceAllASCII) 366 *sourceAllASCII = !(orAllData & 0x7f);366 *sourceAllASCII = !(orAllData & ~0x7f); 367 367 368 368 return result; -
trunk/Source/WTF/wtf/unicode/glib/UnicodeGLib.cpp
r111778 r132507 95 95 UChar* utf16Target = result; 96 96 const char* utf8Source = utf8Result.get(); 97 conversionResult = convertUTF8ToUTF16(&utf8Source, utf8Source + utf8ResultLength, &utf16Target, utf16Target + resultLength, true); 97 bool unusedISAllASCII; 98 conversionResult = convertUTF8ToUTF16(&utf8Source, utf8Source + utf8ResultLength, &utf16Target, utf16Target + resultLength, &unusedIsAllASCII, true); 98 99 long utf16ResultLength = utf16Target - result; 99 100 if (conversionResult != conversionOK)
Note:
See TracChangeset
for help on using the changeset viewer.