Changeset 19440 for S60/trunk/WebCore

Show
Ignore:
Timestamp:
02/06/07 14:03:51 (2 years ago)
Author:
brmorris
Message:

brmorris <bradley.morrison@nokia.com>, rs'd by zalan

DESC: merge from s60/branches/3.1m to s60/trunk of r19429, r19430, r19431, r19432 and r19433

Location:
S60/trunk/WebCore
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • S60/trunk/WebCore/ChangeLog

    r19406 r19440  
     1yongjzha, reviewed by Zalan. 
     2        DESC: don't apply outline style for image inside <A> element 
     3        http://bugs.webkit.org/show_bug.cgi?id=12621 
     4 
     5        WARNING: NO TEST CASES ADDED OR CHANGED 
     6 
     7        * khtml/css/html4.css: 
     8 
     9vbradley, Reviewed by Yongjun. 
     10        DESC: Fixed the stack size and pcre stack overflow. Limit the number 
     11    recursions that are allowed in match(). 
     12        http://bugs.webkit.org/show_bug.cgi?id=12611 
     13 
     14 
     15        WARNING: NO TEST CASES ADDED OR CHANGED 
     16 
     17        * group/WebCore.mmp: 
     18 
     192007-02-02  w3liu  <wei.liu@nokia.com> 
     20 
     21        Reviewed by yongjun.zhang@nokia.com. 
     22        DESC: If there is meta, should check meta tag in decoder.cpp 
     23        http://bugs.webkit.org/show_bug.cgi?id=12225 
     24 
     25        WARNING: NO TEST CASES ADDED OR CHANGED 
     26 
     27        * khtml/misc/decoder.cpp: 
     28        (Decoder::decode): 
     29 
    130bujtas, merged of r19405 to s60/trunk by mbradley, reviewed by yongjun. 
    231        DESC: browser is crashing if it is closed while a page is loading and closing and opening a new window crashes the browser as well TMCN-6XRQP2  
  • S60/trunk/WebCore/group/WebCore.mmp

    r17301 r19440  
    2525epocallowdlldata 
    2626VENDORID    VID_DEFAULT 
     27// stack size 64K 
     28epocstacksize 0x10000 
    2729 
    2830LANG     SC 
  • S60/trunk/WebCore/khtml/css/html4.css

    r18194 r19440  
    429429:focus img  { outline: auto 2px #aaaaff; outline-offset: 2px } 
    430430a:-khtml-any-link:hover     { outline: auto 4px #aaaaff; outline-offset: 2px } 
    431 a:-khtml-any-link:hover img { outline: auto 4px #aaaaff; outline-offset: 2px } 
    432431 
    433432 
  • S60/trunk/WebCore/khtml/misc/decoder.cpp

    r19051 r19440  
    485485            const char *pEnd = buffer.length(); 
    486486#endif 
     487#if NOKIA_CHANGES 
     488            bool hasMeta = buffer.find("<meta", 0, false); 
     489            bool reachMeta = false; 
     490#endif 
    487491            while(ptr != pEnd) 
    488492            { 
     
    533537                    switch( id ) { 
    534538                    case ID_META: 
    535                     { 
     539                        { 
     540#if NOKIA_CHANGES 
     541                        reachMeta = true;                         
     542#endif 
    536543                        // found a meta tag... 
    537544                        //ptr += 5; 
     
    544551                        //if( (pos = str.find("http-equiv", pos)) == -1) break; 
    545552                        //if( (pos = str.find("content-type", pos)) == -1) break; 
    546             while( pos < ( int ) str.length() ) { 
    547                 if( (pos = str.find("charset", pos, false)) == -1) break; 
    548                 pos += 7; 
     553                        while( pos < ( int ) str.length() ) { 
     554                            if( (pos = str.find("charset", pos, false)) == -1) break; 
     555                            pos += 7; 
    549556                            // skip whitespace.. 
    550                 while(  pos < (int)str.length() && str[pos] <= ' ' ) pos++; 
     557                            while(  pos < (int)str.length() && str[pos] <= ' ' ) pos++; 
    551558                            if ( pos == ( int )str.length()) break; 
    552559                            if ( str[pos++] != '=' ) continue; 
    553560                            while ( pos < ( int )str.length() && 
    554                                     ( str[pos] <= ' ' ) || str[pos] == '=' || str[pos] == '"' || str[pos] == '\'') 
    555                 pos++; 
    556  
     561                                ( str[pos] <= ' ' ) || str[pos] == '=' || str[pos] == '"' || str[pos] == '\'') 
     562                                pos++; 
     563                             
    557564                            // end ? 
    558565                            if ( pos == ( int )str.length() ) break; 
    559                 uint endpos = pos; 
    560                 while( endpos < str.length() && 
    561                                    (str[endpos] != ' ' && str[endpos] != '"' && str[endpos] != '\'' 
    562                                     && str[endpos] != ';' && str[endpos] != '>') ) 
    563                 endpos++; 
    564 #ifdef DECODE_DEBUG 
    565                 kdDebug( 6005 ) << "Decoder: found charset: " << str.mid(pos, endpos-pos) << endl; 
    566 #endif 
    567                 setEncoding(str.mid(pos, endpos-pos), EncodingFromMetaTag); 
    568                 if( m_type == EncodingFromMetaTag ) goto found; 
    569  
     566                            uint endpos = pos; 
     567                            while( endpos < str.length() && 
     568                                (str[endpos] != ' ' && str[endpos] != '"' && str[endpos] != '\'' 
     569                                && str[endpos] != ';' && str[endpos] != '>') ) 
     570                                endpos++; 
     571#ifdef DECODE_DEBUG 
     572                            kdDebug( 6005 ) << "Decoder: found charset: " << str.mid(pos, endpos-pos) << endl; 
     573#endif 
     574                            setEncoding(str.mid(pos, endpos-pos), EncodingFromMetaTag); 
     575                            if( m_type == EncodingFromMetaTag ) goto found; 
     576                             
    570577                            if ( endpos >= str.length() || str[endpos] == '/' || str[endpos] == '>' ) break; 
    571  
    572                 pos = endpos + 1; 
    573             } 
    574             } 
     578                             
     579                            pos = endpos + 1; 
     580                            } 
     581                        } 
    575582                    case (ID_META+ID_CLOSE_TAG): 
    576583                    case ID_SCRIPT: 
     
    597604                        break; 
    598605                    default: 
     606#if NOKIA_CHANGES 
     607                        if (hasMeta && !reachMeta) 
     608                            break; 
     609#endif 
    599610                        body = true; 
    600611#ifdef DECODE_DEBUG