Changeset 18935 for S60/trunk/WebCore

Show
Ignore:
Timestamp:
01/18/07 07:59:08 (2 years ago)
Author:
yongjzha
Message:

2007-01-17 w3liu <wei.liu@nokia.com>

Reviewed by yongjun.zhang@nokia.com.
DESC:
http://bugs.webkit.org/show_bug.cgi?id=12306

WARNING: NO TEST CASES ADDED OR CHANGED

  • khtml/khtml_part.cpp: (KHTMLPart::encoding):
  • kwq/KWQTextCodec.cpp: (KWQTextDecoder::fromUnicode): (KWQTextDecoder::checkRealloc):
Location:
S60/trunk/WebCore
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • S60/trunk/WebCore/ChangeLog

    r18934 r18935  
     12007-01-17  w3liu  <wei.liu@nokia.com> 
     2 
     3        Reviewed by yongjun.zhang@nokia.com. 
     4        DESC:  
     5        http://bugs.webkit.org/show_bug.cgi?id=12306 
     6 
     7        WARNING: NO TEST CASES ADDED OR CHANGED 
     8 
     9        * khtml/khtml_part.cpp: 
     10        (KHTMLPart::encoding): 
     11        * kwq/KWQTextCodec.cpp: 
     12        (KWQTextDecoder::fromUnicode): 
     13        (KWQTextDecoder::checkRealloc): 
     14 
    1152007-01-15  raalexan  <rasvan.alexandrescu@nokia.com> 
    216 
  • S60/trunk/WebCore/khtml/khtml_part.cpp

    r18807 r18935  
    23442344QString KHTMLPart::encoding() const 
    23452345{ 
     2346 
     2347    if(d->m_decoder && d->m_decoder->encoding()) 
     2348        return QString(d->m_decoder->encoding()); 
     2349 
    23462350    if(d->m_haveEncoding && !d->m_encoding.isEmpty()) 
    23472351        return d->m_encoding; 
    2348  
    2349     if(d->m_decoder && d->m_decoder->encoding()) 
    2350         return QString(d->m_decoder->encoding()); 
    23512352 
    23522353    return(settings()->encoding()); 
  • S60/trunk/WebCore/kwq/KWQTextCodec.cpp

    r18808 r18935  
    496496 
    497497    // check if the target charset is supported 
    498     QCString outStr(str.length()*3); 
     498    QCString outStr(str.length()*4); 
    499499    charConv->PrepareToConvertToOrFromL( iEncoding, *iArrayOfCharacterSetsAvailable, fileSession ); 
    500500 
     
    562562        outBuf->Des().Copy( aPtr ); 
    563563        aPtr.Set( outBuf->Des() ); 
    564         aPtr.SetLength( aLen ); 
    565564        } 
    566565   return outBuf;