From 72d421f35fca42ded4eec9580cd9135a768a0dcd Mon Sep 17 00:00:00 2001 From: mjs Date: Wed, 1 Dec 2004 00:54:40 +0000 Subject: [PATCH] Reviewed by John. REGRESSION (159-163): onload in dynamically written document not called (causes blank search page at Japanese EPP site, many others) * khtml/khtml_part.cpp: (KHTMLPart::begin): call setParsing on document here after opening - from now on we'll only set parsing to true for a document open caused by page loading, not a programmatic one. * khtml/xml/dom_docimpl.cpp: (DocumentImpl::open): don't setParsing to true here any more. git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8092 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebCore/ChangeLog-2005-08-23 | 13 +++++++++++++ WebCore/khtml/khtml_part.cpp | 1 + WebCore/khtml/xml/dom_docimpl.cpp | 1 - 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23 index 41733d9b90c7..f7bf8857961d 100644 --- a/WebCore/ChangeLog-2005-08-23 +++ b/WebCore/ChangeLog-2005-08-23 @@ -1,3 +1,16 @@ +2004-11-30 Maciej Stachowiak + + Reviewed by John. + + REGRESSION (159-163): onload in dynamically written document not called (causes blank search page at Japanese EPP site, many others) + + * khtml/khtml_part.cpp: + (KHTMLPart::begin): call setParsing on document here after opening + - from now on we'll only set parsing to true for a document open + caused by page loading, not a programmatic one. + * khtml/xml/dom_docimpl.cpp: + (DocumentImpl::open): don't setParsing to true here any more. + 2004-11-30 Maciej Stachowiak Reviewed by John. diff --git a/WebCore/khtml/khtml_part.cpp b/WebCore/khtml/khtml_part.cpp index 8c4d457854ea..4dbfedb8a873 100644 --- a/WebCore/khtml/khtml_part.cpp +++ b/WebCore/khtml/khtml_part.cpp @@ -1570,6 +1570,7 @@ void KHTMLPart::begin( const KURL &url, int xOffset, int yOffset ) #endif d->m_doc->open(); + d->m_doc->setParsing(true); // clear widget if (d->m_view) d->m_view->resizeContents( 0, 0 ); diff --git a/WebCore/khtml/xml/dom_docimpl.cpp b/WebCore/khtml/xml/dom_docimpl.cpp index da942693ec4d..8dddcaa67f42 100644 --- a/WebCore/khtml/xml/dom_docimpl.cpp +++ b/WebCore/khtml/xml/dom_docimpl.cpp @@ -1325,7 +1325,6 @@ void DocumentImpl::open( ) clear(); m_tokenizer = createTokenizer(); - setParsing(true); connect(m_tokenizer,SIGNAL(finishedParsing()),this,SIGNAL(finishedParsing())); if (m_view && m_view->part()->jScript()) { -- 2.36.0