Reviewed by darin.
authorvicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 May 2005 21:11:23 +0000 (21:11 +0000)
committervicki <vicki@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 May 2005 21:11:23 +0000 (21:11 +0000)
commit2246421c8a3ee8c9cf57f1c4b3ddf5925c2209ca
tree19765925cf5a77865817ecf0b0079132f25432d8
parent4785d34d60b0ed59afa4a2ef3b844d2195befd9f
    Reviewed by darin.

- fixed <rdar://problem/3986228> Not able to load additional script blocks dynamically

Run scripts when they're inserted into the document. Use createdByParser bit to make sure
that scripts aren't run twice, once while parsing and again when inserting.

        * khtml/html/html_headimpl.cpp:
        (HTMLScriptElementImpl::HTMLScriptElementImpl):
        (HTMLScriptElementImpl::~HTMLScriptElementImpl):
        (HTMLScriptElementImpl::insertedIntoDocument):
        (HTMLScriptElementImpl::removedFromDocument):
        (HTMLScriptElementImpl::notifyFinished):
        * khtml/html/html_headimpl.h:
        (DOM::HTMLScriptElementImpl::setCreatedByParser):
        * khtml/html/htmlparser.cpp:
        (KHTMLParser::getElement):
        * khtml/xml/xml_tokenizer.cpp:
        (khtml::XMLTokenizer::startElement):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/html/html_headimpl.cpp
WebCore/khtml/html/html_headimpl.h
WebCore/khtml/html/htmlparser.cpp
WebCore/khtml/xml/xml_tokenizer.cpp