LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Oct 2005 06:10:11 +0000 (06:10 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 26 Oct 2005 06:10:11 +0000 (06:10 +0000)
commit1da8908623b22b98fede621a5920eb011283754a
tree7d1b1119c35fb3e6f2fa9fcc7f0e858cb45e7756
parentca5413793c8786208b208e95c4d3e7525cac61ac
LayoutTests:

        * dom/xhtml/level1/core/hc_documentgetdoctype-expected.txt: Expect success.

WebCore:

        Reviewed by Eric.

        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=5315
          need to set document type based on contents of <!DOCTYPE>
          (fixes one layout test)

        * khtml/html/html_documentimpl.cpp: (DOM::HTMLDocumentImpl::determineParseMode):
        Use the new setDocType function instead of modifying m_doctype directly.

        * khtml/xml/dom_docimpl.h: Changed to use SharedPtr more.
        (DOM::DocumentImpl::realDocType): Add get() since we're using SharedPtr.
        (DOM::DocumentImpl::setDocType): Added.
        * khtml/xml/dom_docimpl.cpp:
        (DOMImplementationImpl::createDocument): Use setDocType instead of using
        realDocType()->copyFrom to set up the document type in the new document.
        (DocumentImpl::DocumentImpl): Don't create an empty document type during constructor.
        (DocumentImpl::~DocumentImpl): Remove explicit deref since we're using SharedPtr.
        (DocumentImpl::doctype): Add get() since we're using SharedPtr.
        (DocumentTypeImpl::DocumentTypeImpl): Streamlined implementation since we're using SharedPtr.

        * khtml/xml/xml_tokenizer.cpp:
        (khtml::XMLTokenizer::internalSubset): Added. Calls setDocType.
        (khtml::internalSubsetHandler): Added. Calls xmlSAX2InternalSubset after calling our function.
        (khtml::XMLTokenizer::finish): Changed to pass our internalSubsetHandler function pointer.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@10966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/dom/xhtml/level1/core/hc_documentgetdoctype-expected.txt
WebCore/ChangeLog-2005-12-19
WebCore/khtml/html/html_documentimpl.cpp
WebCore/khtml/xml/dom_docimpl.cpp
WebCore/khtml/xml/dom_docimpl.h
WebCore/khtml/xml/xml_tokenizer.cpp