Changeset 20587 for S60/trunk/WebCore
- Timestamp:
- 03/29/07 13:36:11 (22 months ago)
- Location:
- S60/trunk/WebCore
- Files:
-
- 4 modified
-
ChangeLog (modified) (1 diff)
-
khtml/html/htmltokenizer.cpp (modified) (1 diff)
-
khtml/html/htmltokenizer.h (modified) (1 diff)
-
khtml/khtml_part.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
S60/trunk/WebCore/ChangeLog
r20586 r20587 1 yongjzha <yongjun.zhang@nokia.com> 2 3 Reviewed by Zalan <zbujtas@gmail.com> 4 DESC: refreshing crashes the browser on some sites (kauppalehti.fi, hs.fi) 5 fix: stop the tokenizer timer when switching to final document from preview document. 6 7 http://bugs.webkit.org/show_bug.cgi?id=13219 8 9 10 * khtml/html/htmltokenizer.cpp: 11 (khtml::): 12 * khtml/html/htmltokenizer.h: 13 * khtml/khtml_part.cpp: 14 (KHTMLPart::switchToDocWithPendingSrc): 15 1 16 bujtas <zbujtas@gmail.com> 2 17 -
S60/trunk/WebCore/khtml/html/htmltokenizer.cpp
r19501 r20587 1978 1978 } 1979 1979 1980 1981 #if NOKIA_CHANGES 1982 // fix mysterious crash after switching to final documents. 1983 void HTMLTokenizer::stopFutureParsing() 1984 { 1985 if (timerId) { 1986 killTimer(timerId); 1987 timerId = 0; 1988 end(); 1989 } 1990 } 1991 #endif 1992 1980 1993 void HTMLTokenizer::end() 1981 1994 { -
S60/trunk/WebCore/khtml/html/htmltokenizer.h
r18939 r20587 140 140 bool isExecutingDocumentWrite() { return executingDocumentWrite; } 141 141 bool isExecutingExternalScript() { return executingExternalScript; } 142 void stopFutureParsing(); 142 143 #endif 143 144 -
S60/trunk/WebCore/khtml/khtml_part.cpp
r19406 r20587 63 63 #include "xml/dom2_rangeimpl.h" 64 64 #include "xml/xml_tokenizer.h" 65 #include "html/HTMLTokenizer.h" 65 66 66 67 using namespace DOM; … … 6164 6165 void KHTMLPart::switchToDocWithPendingSrc() 6165 6166 { 6166 d->m_doc->finishParsing();6167 6167 DocumentImpl* oldDoc = d->m_doc; 6168 if( oldDoc ) { 6169 oldDoc->finishParsing(); 6170 if (oldDoc->tokenizer()) { 6171 static_cast<khtml::HTMLTokenizer*>(oldDoc->tokenizer())->stopFutureParsing(); 6172 } 6173 } 6168 6174 6169 6175 // create the real display doc