Lines 29-34
Link Here
|
29 |
#include "xml/dom2_rangeimpl.h" |
29 |
#include "xml/dom2_rangeimpl.h" |
30 |
#include "xml/dom2_eventsimpl.h" |
30 |
#include "xml/dom2_eventsimpl.h" |
31 |
#include "xml/xml_tokenizer.h" |
31 |
#include "xml/xml_tokenizer.h" |
|
|
32 |
#include "html/htmltokenizer.h" |
32 |
|
33 |
|
33 |
#include "css/csshelper.h" |
34 |
#include "css/csshelper.h" |
34 |
#include "css/cssstyleselector.h" |
35 |
#include "css/cssstyleselector.h" |
Lines 1180-1186
Link Here
|
1180 |
// on an explicit document.close(), the tokenizer might still be waiting on scripts, |
1181 |
// on an explicit document.close(), the tokenizer might still be waiting on scripts, |
1181 |
// and in that case we don't want to destroy it because that will prevent the |
1182 |
// and in that case we don't want to destroy it because that will prevent the |
1182 |
// scripts from getting processed. |
1183 |
// scripts from getting processed. |
1183 |
if (m_tokenizer && !m_tokenizer->isWaitingForScripts()) { |
1184 |
if (m_tokenizer && !m_tokenizer->isWaitingForScripts() && !m_tokenizer->isExecutingScript()) { |
1184 |
delete m_tokenizer; |
1185 |
delete m_tokenizer; |
1185 |
m_tokenizer = 0; |
1186 |
m_tokenizer = 0; |
1186 |
} |
1187 |
} |
Lines 1198-1204
Link Here
|
1198 |
{ |
1199 |
{ |
1199 |
if (!m_tokenizer) { |
1200 |
if (!m_tokenizer) { |
1200 |
open(); |
1201 |
open(); |
1201 |
write(QString::fromLatin1("<html><title></title><body>")); |
1202 |
if (m_view) |
|
|
1203 |
m_view->part()->resetFromScript(); |
1204 |
m_tokenizer->setAutoClose(); |
1205 |
write(QString::fromLatin1("<html>")); |
1202 |
} |
1206 |
} |
1203 |
m_tokenizer->write(text, false); |
1207 |
m_tokenizer->write(text, false); |
1204 |
} |
1208 |
} |