Changeset 132507 in webkit


Ignore:
Timestamp:
Oct 25, 2012, 11:40:53 AM (12 years ago)
Author:
msaboff@apple.com
Message:

REGRESSION (r131836): failures in list styles tests on EFL, GTK
https://bugs.webkit.org/show_bug.cgi?id=99824

Reviewed by Oliver Hunt.

Source/JavaScriptCore:

Saved start of string since it is modified by call convertUTF8ToUTF16().

  • API/JSStringRef.cpp:

(JSStringCreateWithUTF8CString):

Source/WTF:

Fixed ASCII check.
Added placeholder argument for new argument added to convertUTF8ToUTF16() in http://trac.webkit.org/changeset/131836.

  • wtf/unicode/UTF8.cpp:

(WTF::Unicode::convertUTF8ToUTF16):

  • wtf/unicode/glib/UnicodeGLib.cpp:

(WTF::Unicode::convertCase):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/JSStringRef.cpp

    r131836 r132507  
    4848        UChar* p = buffer.data();
    4949        bool sourceIsAllASCII;
     50        const LChar* stringStart = reinterpret_cast<const LChar*>(string);
    5051        if (conversionOK == convertUTF8ToUTF16(&string, string + length, &p, p + length, &sourceIsAllASCII)) {
    5152            if (sourceIsAllASCII)
    52                 return OpaqueJSString::create(reinterpret_cast<const LChar*>(string), length).leakRef();
     53                return OpaqueJSString::create(stringStart, length).leakRef();
    5354            return OpaqueJSString::create(buffer.data(), p - buffer.data()).leakRef();
    5455        }
  • trunk/Source/JavaScriptCore/ChangeLog

    r132499 r132507  
     12012-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
    1132012-10-24  Filip Pizlo  <fpizlo@apple.com>
    214
  • trunk/Source/WTF/ChangeLog

    r132498 r132507  
     12012-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
    1162012-10-25  Christophe Dumez  <christophe.dumez@intel.com>
    217
  • trunk/Source/WTF/wtf/unicode/UTF8.cpp

    r131836 r132507  
    364364
    365365    if (sourceAllASCII)
    366         *sourceAllASCII = !(orAllData & 0x7f);
     366        *sourceAllASCII = !(orAllData & ~0x7f);
    367367
    368368    return result;
  • trunk/Source/WTF/wtf/unicode/glib/UnicodeGLib.cpp

    r111778 r132507  
    9595    UChar* utf16Target = result;
    9696    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);
    9899    long utf16ResultLength = utf16Target - result;
    99100    if (conversionResult != conversionOK)
Note: See TracChangeset for help on using the changeset viewer.