Changeset 19440 for S60/trunk/WebCore
- Timestamp:
- 02/06/07 14:03:51 (2 years ago)
- Location:
- S60/trunk/WebCore
- Files:
-
- 4 modified
-
ChangeLog (modified) (1 diff)
-
group/WebCore.mmp (modified) (1 diff)
-
khtml/css/html4.css (modified) (1 diff)
-
khtml/misc/decoder.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
S60/trunk/WebCore/ChangeLog
r19406 r19440 1 yongjzha, 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 9 vbradley, 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 19 2007-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 1 30 bujtas, merged of r19405 to s60/trunk by mbradley, reviewed by yongjun. 2 31 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 25 25 epocallowdlldata 26 26 VENDORID VID_DEFAULT 27 // stack size 64K 28 epocstacksize 0x10000 27 29 28 30 LANG SC -
S60/trunk/WebCore/khtml/css/html4.css
r18194 r19440 429 429 :focus img { outline: auto 2px #aaaaff; outline-offset: 2px } 430 430 a:-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 }432 431 433 432 -
S60/trunk/WebCore/khtml/misc/decoder.cpp
r19051 r19440 485 485 const char *pEnd = buffer.length(); 486 486 #endif 487 #if NOKIA_CHANGES 488 bool hasMeta = buffer.find("<meta", 0, false); 489 bool reachMeta = false; 490 #endif 487 491 while(ptr != pEnd) 488 492 { … … 533 537 switch( id ) { 534 538 case ID_META: 535 { 539 { 540 #if NOKIA_CHANGES 541 reachMeta = true; 542 #endif 536 543 // found a meta tag... 537 544 //ptr += 5; … … 544 551 //if( (pos = str.find("http-equiv", pos)) == -1) break; 545 552 //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; 549 556 // skip whitespace.. 550 while( pos < (int)str.length() && str[pos] <= ' ' ) pos++;557 while( pos < (int)str.length() && str[pos] <= ' ' ) pos++; 551 558 if ( pos == ( int )str.length()) break; 552 559 if ( str[pos++] != '=' ) continue; 553 560 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 557 564 // end ? 558 565 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 570 577 if ( endpos >= str.length() || str[endpos] == '/' || str[endpos] == '>' ) break; 571 572 pos = endpos + 1;573 }574 }578 579 pos = endpos + 1; 580 } 581 } 575 582 case (ID_META+ID_CLOSE_TAG): 576 583 case ID_SCRIPT: … … 597 604 break; 598 605 default: 606 #if NOKIA_CHANGES 607 if (hasMeta && !reachMeta) 608 break; 609 #endif 599 610 body = true; 600 611 #ifdef DECODE_DEBUG