Commit ff90f422 authored by rjw's avatar rjw

Fixes to the DOM API.

        * DOM.subproj/WebDOMDocument.h:
        * DOM.subproj/WebDOMDocument.m:
        * DOM.subproj/WebDOMNode.h:
        * DOM.subproj/WebDOMNode.m:
        * DOM.subproj/WebDOMNamedNodeMap.h: Removed.
        * DOM.subproj/WebDOMNamedNodeMap.m: Removed.
        * WebKit.pbproj/project.pbxproj:


        First cut at ObjC stubs for DOM API.  Finished the
        main classes.  Need to finish
        WebDOMElement, WebDOMElement, WebDOMElement,
        WebDOMCDATASection, WebDOMText, WebDOMComment,
        WebDOMCharacterData and

        * WebCore.pbproj/project.pbxproj:
        * khtml/dom/dom_doc.h:
        * khtml/dom/dom_element.h:
        * khtml/dom/dom_node.h:
        * khtml/xml/dom_docimpl.h:
        * khtml/xml/dom_elementimpl.h:
        * khtml/xml/dom_nodeimpl.h:
        * kwq/WebCoreDOM.h: Added.
        * kwq/WebCoreDOMDocument.mm: Added.
        (DOM::DOMImplementationImpl::createInstance):
        (DOM::DocumentTypeImpl::createInstance):
        (DOM::DocumentImpl::createInstance):
        (domStringToNSString):
        (NSStringToDOMString):
        (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
        (-[WebCoreDOMDocumentType initWithImpl:DOM::]):
        (-[WebCoreDOMDocumentType dealloc]):
        (-[WebCoreDOMDocumentType DOM::]):
        (-[WebCoreDOMDocumentType name]):
        (-[WebCoreDOMDocumentType entities]):
        (-[WebCoreDOMDocumentType notations]):
        (-[WebCoreDOMDocumentType publicId]):
        (-[WebCoreDOMDocumentType systemId]):
        (-[WebCoreDOMDocumentType internalSubset]):
        (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
        (-[WebCoreDOMImplementation initWithImpl:DOM::]):
        (-[WebCoreDOMImplementation dealloc]):
        (-[WebCoreDOMImplementation DOM::]):
        (-[WebCoreDOMImplementation hasFeature::]):
        (-[WebCoreDOMImplementation createDocument:::]):
        (+[WebCoreDOMDocument documentWithImpl:DOM::]):
        (-[WebCoreDOMDocument initWithImpl:DOM::]):
        (-[WebCoreDOMDocument dealloc]):
        (-[WebCoreDOMDocument DOM::]):
        (-[WebCoreDOMDocument doctype]):
        (-[WebCoreDOMDocument implementation]):
        (-[WebCoreDOMDocument documentElement]):
        (-[WebCoreDOMDocument createElement:]):
        (-[WebCoreDOMDocument createElementNS::]):
        (-[WebCoreDOMDocument createDocumentFragment]):
        (-[WebCoreDOMDocument createTextNode:]):
        (-[WebCoreDOMDocument createComment:]):
        (-[WebCoreDOMDocument createCDATASection:]):
        (-[WebCoreDOMDocument createProcessingInstruction::]):
        (-[WebCoreDOMDocument createAttribute:]):
        (-[WebCoreDOMDocument createAttributeNS::]):
        (-[WebCoreDOMDocument createEntityReference:]):
        (-[WebCoreDOMDocument getElementById:]):
        (-[WebCoreDOMDocument getElementsByTagName:]):
        (-[WebCoreDOMDocument getElementsByTagNameNS::]):
        (-[WebCoreDOMDocument importNode::]):
        * kwq/WebCoreDOMNode.mm: Added.
        (DOM::NamedNodeMapImpl::createInstance):
        (DOM::AttrImpl::createInstance):
        (+[WebCoreDOMNode nodeWithImpl:DOM::]):
        (-[WebCoreDOMNode initWithImpl:DOM::]):
        (-[WebCoreDOMNode DOM::]):
        (-[WebCoreDOMNode dealloc]):
        (-[WebCoreDOMNode nodeName]):
        (-[WebCoreDOMNode nodeValue]):
        (-[WebCoreDOMNode setNodeValue:]):
        (-[WebCoreDOMNode nodeType]):
        (-[WebCoreDOMNode parentNode]):
        (-[WebCoreDOMNode firstChild]):
        (-[WebCoreDOMNode lastChild]):
        (-[WebCoreDOMNode previousSibling]):
        (-[WebCoreDOMNode nextSibling]):
        (-[WebCoreDOMNode ownerDocument]):
        (-[WebCoreDOMNode insert:before:]):
        (-[WebCoreDOMNode replace:child:]):
        (-[WebCoreDOMNode removeChild:]):
        (-[WebCoreDOMNode hasChildNodes]):
        (-[WebCoreDOMNode cloneNode:]):
        (-[WebCoreDOMNode normalize]):
        (-[WebCoreDOMNode isSupported::]):
        (-[WebCoreDOMNode namespaceURI]):
        (-[WebCoreDOMNode prefix]):
        (-[WebCoreDOMNode setPrefix:]):
        (-[WebCoreDOMNode localName]):
        (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
        (-[WebCoreDOMNodeList initWithImpl:DOM::]):
        (-[WebCoreDOMNodeList DOM::]):
        (-[WebCoreDOMNodeList dealloc]):
        (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
        (-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
        (-[WebCoreDOMNamedNodeMap DOM::]):
        (-[WebCoreDOMNamedNodeMap dealloc]):
        (-[WebCoreDOMNamedNodeMap length]):
        (-[WebCoreDOMNamedNodeMap getNamedItem:]):
        (-[WebCoreDOMNamedNodeMap setNamedItem:]):
        (+[WebCoreDOMAttr attrWithImpl:DOM::]):
        (-[WebCoreDOMAttr initWithImpl:DOM::]):
        (-[WebCoreDOMAttr DOM::]):
        (-[WebCoreDOMAttr dealloc]):
        (-[WebCoreDOMAttr name]):
        (-[WebCoreDOMAttr specified]):
        (-[WebCoreDOMAttr value]):
        (-[WebCoreDOMAttr ownerElement]):
        (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
        (-[WebCoreDOMCDATASection initWithImpl:DOM::]):
        (-[WebCoreDOMCDATASection DOM::]):
        (-[WebCoreDOMCDATASection dealloc]):
        * kwq/WebCoreDOMPrivate.h: Added.
        * kwq/WebDOMDocument.h: Added.
        * kwq/WebDOMElement.h: Added.
        * kwq/WebDOMNode.h: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 92ad8fa8
2002-10-08 Richard Williamson <rjw@apple.com>
First cut at ObjC stubs for DOM API. Finished the
main classes. Need to finish
WebDOMElement, WebDOMElement, WebDOMElement,
WebDOMCDATASection, WebDOMText, WebDOMComment,
WebDOMCharacterData and
* WebCore.pbproj/project.pbxproj:
* khtml/dom/dom_doc.h:
* khtml/dom/dom_element.h:
* khtml/dom/dom_node.h:
* khtml/xml/dom_docimpl.h:
* khtml/xml/dom_elementimpl.h:
* khtml/xml/dom_nodeimpl.h:
* kwq/WebCoreDOM.h: Added.
* kwq/WebCoreDOMDocument.mm: Added.
(DOM::DOMImplementationImpl::createInstance):
(DOM::DocumentTypeImpl::createInstance):
(DOM::DocumentImpl::createInstance):
(domStringToNSString):
(NSStringToDOMString):
(+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
(-[WebCoreDOMDocumentType initWithImpl:DOM::]):
(-[WebCoreDOMDocumentType dealloc]):
(-[WebCoreDOMDocumentType DOM::]):
(-[WebCoreDOMDocumentType name]):
(-[WebCoreDOMDocumentType entities]):
(-[WebCoreDOMDocumentType notations]):
(-[WebCoreDOMDocumentType publicId]):
(-[WebCoreDOMDocumentType systemId]):
(-[WebCoreDOMDocumentType internalSubset]):
(+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
(-[WebCoreDOMImplementation initWithImpl:DOM::]):
(-[WebCoreDOMImplementation dealloc]):
(-[WebCoreDOMImplementation DOM::]):
(-[WebCoreDOMImplementation hasFeature::]):
(-[WebCoreDOMImplementation createDocument:::]):
(+[WebCoreDOMDocument documentWithImpl:DOM::]):
(-[WebCoreDOMDocument initWithImpl:DOM::]):
(-[WebCoreDOMDocument dealloc]):
(-[WebCoreDOMDocument DOM::]):
(-[WebCoreDOMDocument doctype]):
(-[WebCoreDOMDocument implementation]):
(-[WebCoreDOMDocument documentElement]):
(-[WebCoreDOMDocument createElement:]):
(-[WebCoreDOMDocument createElementNS::]):
(-[WebCoreDOMDocument createDocumentFragment]):
(-[WebCoreDOMDocument createTextNode:]):
(-[WebCoreDOMDocument createComment:]):
(-[WebCoreDOMDocument createCDATASection:]):
(-[WebCoreDOMDocument createProcessingInstruction::]):
(-[WebCoreDOMDocument createAttribute:]):
(-[WebCoreDOMDocument createAttributeNS::]):
(-[WebCoreDOMDocument createEntityReference:]):
(-[WebCoreDOMDocument getElementById:]):
(-[WebCoreDOMDocument getElementsByTagName:]):
(-[WebCoreDOMDocument getElementsByTagNameNS::]):
(-[WebCoreDOMDocument importNode::]):
* kwq/WebCoreDOMNode.mm: Added.
(DOM::NamedNodeMapImpl::createInstance):
(DOM::AttrImpl::createInstance):
(+[WebCoreDOMNode nodeWithImpl:DOM::]):
(-[WebCoreDOMNode initWithImpl:DOM::]):
(-[WebCoreDOMNode DOM::]):
(-[WebCoreDOMNode dealloc]):
(-[WebCoreDOMNode nodeName]):
(-[WebCoreDOMNode nodeValue]):
(-[WebCoreDOMNode setNodeValue:]):
(-[WebCoreDOMNode nodeType]):
(-[WebCoreDOMNode parentNode]):
(-[WebCoreDOMNode firstChild]):
(-[WebCoreDOMNode lastChild]):
(-[WebCoreDOMNode previousSibling]):
(-[WebCoreDOMNode nextSibling]):
(-[WebCoreDOMNode ownerDocument]):
(-[WebCoreDOMNode insert:before:]):
(-[WebCoreDOMNode replace:child:]):
(-[WebCoreDOMNode removeChild:]):
(-[WebCoreDOMNode hasChildNodes]):
(-[WebCoreDOMNode cloneNode:]):
(-[WebCoreDOMNode normalize]):
(-[WebCoreDOMNode isSupported::]):
(-[WebCoreDOMNode namespaceURI]):
(-[WebCoreDOMNode prefix]):
(-[WebCoreDOMNode setPrefix:]):
(-[WebCoreDOMNode localName]):
(+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
(-[WebCoreDOMNodeList initWithImpl:DOM::]):
(-[WebCoreDOMNodeList DOM::]):
(-[WebCoreDOMNodeList dealloc]):
(+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
(-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
(-[WebCoreDOMNamedNodeMap DOM::]):
(-[WebCoreDOMNamedNodeMap dealloc]):
(-[WebCoreDOMNamedNodeMap length]):
(-[WebCoreDOMNamedNodeMap getNamedItem:]):
(-[WebCoreDOMNamedNodeMap setNamedItem:]):
(+[WebCoreDOMAttr attrWithImpl:DOM::]):
(-[WebCoreDOMAttr initWithImpl:DOM::]):
(-[WebCoreDOMAttr DOM::]):
(-[WebCoreDOMAttr dealloc]):
(-[WebCoreDOMAttr name]):
(-[WebCoreDOMAttr specified]):
(-[WebCoreDOMAttr value]):
(-[WebCoreDOMAttr ownerElement]):
(+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
(-[WebCoreDOMCDATASection initWithImpl:DOM::]):
(-[WebCoreDOMCDATASection DOM::]):
(-[WebCoreDOMCDATASection dealloc]):
* kwq/WebCoreDOMPrivate.h: Added.
* kwq/WebDOMDocument.h: Added.
* kwq/WebDOMElement.h: Added.
* kwq/WebDOMNode.h: Added.
2002-10-09 David Hyatt <hyatt@apple.com>
Fix a bug in my event handling code for layers. This makes
......@@ -46,7 +161,7 @@
2002-10-07 Richard Williamson <rjw@apple.com>
Added response to WebCore's CachedObject. This allows us to correctly
emulated the WebResourceLoadDelegate API when 're'loading an item
emulate the WebResourceLoadDelegate API when 're'loading an item
from the WebCore cache.
* khtml/misc/loader.cpp:
......
2002-10-08 Richard Williamson <rjw@apple.com>
First cut at ObjC stubs for DOM API. Finished the
main classes. Need to finish
WebDOMElement, WebDOMElement, WebDOMElement,
WebDOMCDATASection, WebDOMText, WebDOMComment,
WebDOMCharacterData and
* WebCore.pbproj/project.pbxproj:
* khtml/dom/dom_doc.h:
* khtml/dom/dom_element.h:
* khtml/dom/dom_node.h:
* khtml/xml/dom_docimpl.h:
* khtml/xml/dom_elementimpl.h:
* khtml/xml/dom_nodeimpl.h:
* kwq/WebCoreDOM.h: Added.
* kwq/WebCoreDOMDocument.mm: Added.
(DOM::DOMImplementationImpl::createInstance):
(DOM::DocumentTypeImpl::createInstance):
(DOM::DocumentImpl::createInstance):
(domStringToNSString):
(NSStringToDOMString):
(+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
(-[WebCoreDOMDocumentType initWithImpl:DOM::]):
(-[WebCoreDOMDocumentType dealloc]):
(-[WebCoreDOMDocumentType DOM::]):
(-[WebCoreDOMDocumentType name]):
(-[WebCoreDOMDocumentType entities]):
(-[WebCoreDOMDocumentType notations]):
(-[WebCoreDOMDocumentType publicId]):
(-[WebCoreDOMDocumentType systemId]):
(-[WebCoreDOMDocumentType internalSubset]):
(+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
(-[WebCoreDOMImplementation initWithImpl:DOM::]):
(-[WebCoreDOMImplementation dealloc]):
(-[WebCoreDOMImplementation DOM::]):
(-[WebCoreDOMImplementation hasFeature::]):
(-[WebCoreDOMImplementation createDocument:::]):
(+[WebCoreDOMDocument documentWithImpl:DOM::]):
(-[WebCoreDOMDocument initWithImpl:DOM::]):
(-[WebCoreDOMDocument dealloc]):
(-[WebCoreDOMDocument DOM::]):
(-[WebCoreDOMDocument doctype]):
(-[WebCoreDOMDocument implementation]):
(-[WebCoreDOMDocument documentElement]):
(-[WebCoreDOMDocument createElement:]):
(-[WebCoreDOMDocument createElementNS::]):
(-[WebCoreDOMDocument createDocumentFragment]):
(-[WebCoreDOMDocument createTextNode:]):
(-[WebCoreDOMDocument createComment:]):
(-[WebCoreDOMDocument createCDATASection:]):
(-[WebCoreDOMDocument createProcessingInstruction::]):
(-[WebCoreDOMDocument createAttribute:]):
(-[WebCoreDOMDocument createAttributeNS::]):
(-[WebCoreDOMDocument createEntityReference:]):
(-[WebCoreDOMDocument getElementById:]):
(-[WebCoreDOMDocument getElementsByTagName:]):
(-[WebCoreDOMDocument getElementsByTagNameNS::]):
(-[WebCoreDOMDocument importNode::]):
* kwq/WebCoreDOMNode.mm: Added.
(DOM::NamedNodeMapImpl::createInstance):
(DOM::AttrImpl::createInstance):
(+[WebCoreDOMNode nodeWithImpl:DOM::]):
(-[WebCoreDOMNode initWithImpl:DOM::]):
(-[WebCoreDOMNode DOM::]):
(-[WebCoreDOMNode dealloc]):
(-[WebCoreDOMNode nodeName]):
(-[WebCoreDOMNode nodeValue]):
(-[WebCoreDOMNode setNodeValue:]):
(-[WebCoreDOMNode nodeType]):
(-[WebCoreDOMNode parentNode]):
(-[WebCoreDOMNode firstChild]):
(-[WebCoreDOMNode lastChild]):
(-[WebCoreDOMNode previousSibling]):
(-[WebCoreDOMNode nextSibling]):
(-[WebCoreDOMNode ownerDocument]):
(-[WebCoreDOMNode insert:before:]):
(-[WebCoreDOMNode replace:child:]):
(-[WebCoreDOMNode removeChild:]):
(-[WebCoreDOMNode hasChildNodes]):
(-[WebCoreDOMNode cloneNode:]):
(-[WebCoreDOMNode normalize]):
(-[WebCoreDOMNode isSupported::]):
(-[WebCoreDOMNode namespaceURI]):
(-[WebCoreDOMNode prefix]):
(-[WebCoreDOMNode setPrefix:]):
(-[WebCoreDOMNode localName]):
(+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
(-[WebCoreDOMNodeList initWithImpl:DOM::]):
(-[WebCoreDOMNodeList DOM::]):
(-[WebCoreDOMNodeList dealloc]):
(+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
(-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
(-[WebCoreDOMNamedNodeMap DOM::]):
(-[WebCoreDOMNamedNodeMap dealloc]):
(-[WebCoreDOMNamedNodeMap length]):
(-[WebCoreDOMNamedNodeMap getNamedItem:]):
(-[WebCoreDOMNamedNodeMap setNamedItem:]):
(+[WebCoreDOMAttr attrWithImpl:DOM::]):
(-[WebCoreDOMAttr initWithImpl:DOM::]):
(-[WebCoreDOMAttr DOM::]):
(-[WebCoreDOMAttr dealloc]):
(-[WebCoreDOMAttr name]):
(-[WebCoreDOMAttr specified]):
(-[WebCoreDOMAttr value]):
(-[WebCoreDOMAttr ownerElement]):
(+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
(-[WebCoreDOMCDATASection initWithImpl:DOM::]):
(-[WebCoreDOMCDATASection DOM::]):
(-[WebCoreDOMCDATASection dealloc]):
* kwq/WebCoreDOMPrivate.h: Added.
* kwq/WebDOMDocument.h: Added.
* kwq/WebDOMElement.h: Added.
* kwq/WebDOMNode.h: Added.
2002-10-09 David Hyatt <hyatt@apple.com>
Fix a bug in my event handling code for layers. This makes
......@@ -46,7 +161,7 @@
2002-10-07 Richard Williamson <rjw@apple.com>
Added response to WebCore's CachedObject. This allows us to correctly
emulated the WebResourceLoadDelegate API when 're'loading an item
emulate the WebResourceLoadDelegate API when 're'loading an item
from the WebCore cache.
* khtml/misc/loader.cpp:
......
2002-10-08 Richard Williamson <rjw@apple.com>
First cut at ObjC stubs for DOM API. Finished the
main classes. Need to finish
WebDOMElement, WebDOMElement, WebDOMElement,
WebDOMCDATASection, WebDOMText, WebDOMComment,
WebDOMCharacterData and
* WebCore.pbproj/project.pbxproj:
* khtml/dom/dom_doc.h:
* khtml/dom/dom_element.h:
* khtml/dom/dom_node.h:
* khtml/xml/dom_docimpl.h:
* khtml/xml/dom_elementimpl.h:
* khtml/xml/dom_nodeimpl.h:
* kwq/WebCoreDOM.h: Added.
* kwq/WebCoreDOMDocument.mm: Added.
(DOM::DOMImplementationImpl::createInstance):
(DOM::DocumentTypeImpl::createInstance):
(DOM::DocumentImpl::createInstance):
(domStringToNSString):
(NSStringToDOMString):
(+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
(-[WebCoreDOMDocumentType initWithImpl:DOM::]):
(-[WebCoreDOMDocumentType dealloc]):
(-[WebCoreDOMDocumentType DOM::]):
(-[WebCoreDOMDocumentType name]):
(-[WebCoreDOMDocumentType entities]):
(-[WebCoreDOMDocumentType notations]):
(-[WebCoreDOMDocumentType publicId]):
(-[WebCoreDOMDocumentType systemId]):
(-[WebCoreDOMDocumentType internalSubset]):
(+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
(-[WebCoreDOMImplementation initWithImpl:DOM::]):
(-[WebCoreDOMImplementation dealloc]):
(-[WebCoreDOMImplementation DOM::]):
(-[WebCoreDOMImplementation hasFeature::]):
(-[WebCoreDOMImplementation createDocument:::]):
(+[WebCoreDOMDocument documentWithImpl:DOM::]):
(-[WebCoreDOMDocument initWithImpl:DOM::]):
(-[WebCoreDOMDocument dealloc]):
(-[WebCoreDOMDocument DOM::]):
(-[WebCoreDOMDocument doctype]):
(-[WebCoreDOMDocument implementation]):
(-[WebCoreDOMDocument documentElement]):
(-[WebCoreDOMDocument createElement:]):
(-[WebCoreDOMDocument createElementNS::]):
(-[WebCoreDOMDocument createDocumentFragment]):
(-[WebCoreDOMDocument createTextNode:]):
(-[WebCoreDOMDocument createComment:]):
(-[WebCoreDOMDocument createCDATASection:]):
(-[WebCoreDOMDocument createProcessingInstruction::]):
(-[WebCoreDOMDocument createAttribute:]):
(-[WebCoreDOMDocument createAttributeNS::]):
(-[WebCoreDOMDocument createEntityReference:]):
(-[WebCoreDOMDocument getElementById:]):
(-[WebCoreDOMDocument getElementsByTagName:]):
(-[WebCoreDOMDocument getElementsByTagNameNS::]):
(-[WebCoreDOMDocument importNode::]):
* kwq/WebCoreDOMNode.mm: Added.
(DOM::NamedNodeMapImpl::createInstance):
(DOM::AttrImpl::createInstance):
(+[WebCoreDOMNode nodeWithImpl:DOM::]):
(-[WebCoreDOMNode initWithImpl:DOM::]):
(-[WebCoreDOMNode DOM::]):
(-[WebCoreDOMNode dealloc]):
(-[WebCoreDOMNode nodeName]):
(-[WebCoreDOMNode nodeValue]):
(-[WebCoreDOMNode setNodeValue:]):
(-[WebCoreDOMNode nodeType]):
(-[WebCoreDOMNode parentNode]):
(-[WebCoreDOMNode firstChild]):
(-[WebCoreDOMNode lastChild]):
(-[WebCoreDOMNode previousSibling]):
(-[WebCoreDOMNode nextSibling]):
(-[WebCoreDOMNode ownerDocument]):
(-[WebCoreDOMNode insert:before:]):
(-[WebCoreDOMNode replace:child:]):
(-[WebCoreDOMNode removeChild:]):
(-[WebCoreDOMNode hasChildNodes]):
(-[WebCoreDOMNode cloneNode:]):
(-[WebCoreDOMNode normalize]):
(-[WebCoreDOMNode isSupported::]):
(-[WebCoreDOMNode namespaceURI]):
(-[WebCoreDOMNode prefix]):
(-[WebCoreDOMNode setPrefix:]):
(-[WebCoreDOMNode localName]):
(+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
(-[WebCoreDOMNodeList initWithImpl:DOM::]):
(-[WebCoreDOMNodeList DOM::]):
(-[WebCoreDOMNodeList dealloc]):
(+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
(-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
(-[WebCoreDOMNamedNodeMap DOM::]):
(-[WebCoreDOMNamedNodeMap dealloc]):
(-[WebCoreDOMNamedNodeMap length]):
(-[WebCoreDOMNamedNodeMap getNamedItem:]):
(-[WebCoreDOMNamedNodeMap setNamedItem:]):
(+[WebCoreDOMAttr attrWithImpl:DOM::]):
(-[WebCoreDOMAttr initWithImpl:DOM::]):
(-[WebCoreDOMAttr DOM::]):
(-[WebCoreDOMAttr dealloc]):
(-[WebCoreDOMAttr name]):
(-[WebCoreDOMAttr specified]):
(-[WebCoreDOMAttr value]):
(-[WebCoreDOMAttr ownerElement]):
(+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
(-[WebCoreDOMCDATASection initWithImpl:DOM::]):
(-[WebCoreDOMCDATASection DOM::]):
(-[WebCoreDOMCDATASection dealloc]):
* kwq/WebCoreDOMPrivate.h: Added.
* kwq/WebDOMDocument.h: Added.
* kwq/WebDOMElement.h: Added.
* kwq/WebDOMNode.h: Added.
2002-10-09 David Hyatt <hyatt@apple.com>
Fix a bug in my event handling code for layers. This makes
......@@ -46,7 +161,7 @@
2002-10-07 Richard Williamson <rjw@apple.com>
Added response to WebCore's CachedObject. This allows us to correctly
emulated the WebResourceLoadDelegate API when 're'loading an item
emulate the WebResourceLoadDelegate API when 're'loading an item
from the WebCore cache.
* khtml/misc/loader.cpp:
......
......@@ -72,7 +72,6 @@
F58C8A07025BD3BC018635CA,
F531DDEC02F0C34D018635CA,
);
hasScannedForEncodings = 1;
isa = PBXProject;
knownRegions = (
English,
......@@ -494,6 +493,12 @@
93861DE1032C2E52008635CE,
93CCF7D6033BD43C008635CE,
93CCF7E3033BE9C1008635CE,
F565A2740352509B01A80180,
F565A27D035284E301A80180,
F5EDAAF7035345D901A80180,
F5EDAAF8035345D901A80180,
F5EDAAF9035345D901A80180,
F5EDAAFA035345D901A80180,
);
isa = PBXHeadersBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
......@@ -724,6 +729,8 @@
9377FB58032C235C008635CE,
93861DE2032C2E52008635CE,
93CCF7D7033BD43C008635CE,
F565A2780352643A01A80180,
F565A27B0352675C01A80180,
);
isa = PBXSourcesBuildPhase;
runOnlyForDeploymentPostprocessing = 0;
......@@ -4087,6 +4094,69 @@
settings = {
};
};
F565A2700352410501A80180 = {
children = (
F565A2730352509B01A80180,
F565A2770352643A01A80180,
F565A27A0352675C01A80180,
F565A27C035284E301A80180,
F5EDAAF3035345D901A80180,
F5EDAAF4035345D901A80180,
F5EDAAF5035345D901A80180,
F5EDAAF6035345D901A80180,
);
isa = PBXGroup;
name = DOM;
refType = 4;
};
F565A2730352509B01A80180 = {
isa = PBXFileReference;
path = WebCoreDOM.h;
refType = 4;
};
F565A2740352509B01A80180 = {
fileRef = F565A2730352509B01A80180;
isa = PBXBuildFile;
settings = {
ATTRIBUTES = (
Private,
);
};
};
F565A2770352643A01A80180 = {
isa = PBXFileReference;
name = WebCoreDOMDocument.mm;
path = kwq/WebCoreDOMDocument.mm;
refType = 2;
};
F565A2780352643A01A80180 = {
fileRef = F565A2770352643A01A80180;
isa = PBXBuildFile;
settings = {
};
};
F565A27A0352675C01A80180 = {
isa = PBXFileReference;
path = WebCoreDOMNode.mm;
refType = 4;
};
F565A27B0352675C01A80180 = {
fileRef = F565A27A0352675C01A80180;
isa = PBXBuildFile;
settings = {
};
};
F565A27C035284E301A80180 = {
isa = PBXFileReference;
path = WebCoreDOMPrivate.h;
refType = 4;
};
F565A27D035284E301A80180 = {
fileRef = F565A27C035284E301A80180;
isa = PBXBuildFile;
settings = {
};
};
F565AE8502ECA583018635CA = {
fileEncoding = 30;
isa = PBXFileReference;
......@@ -5792,6 +5862,7 @@
};
F58785E802DE377601EA4122 = {
children = (
F565A2700352410501A80180,
F587871802DE3B8801EA4122,
F587861C02DE382201EA4122,
F587862F02DE398601EA4122,
......@@ -8137,6 +8208,54 @@
settings = {
};
};
F5EDAAF3035345D901A80180 = {
isa = PBXFileReference;
name = WebDOMDocument.h;
path = kwq/WebDOMDocument.h;
refType = 2;
};
F5EDAAF4035345D901A80180 = {
isa = PBXFileReference;
name = WebDOMElement.h;
path = kwq/WebDOMElement.h;
refType = 2;
};
F5EDAAF5035345D901A80180 = {
isa = PBXFileReference;
name = WebDOMNamedNodeMap.h;
path = kwq/WebDOMNamedNodeMap.h;
refType = 2;
};
F5EDAAF6035345D901A80180 = {
isa = PBXFileReference;
name = WebDOMNode.h;
path = kwq/WebDOMNode.h;
refType = 2;
};
F5EDAAF7035345D901A80180 = {
fileRef = F5EDAAF3035345D901A80180;
isa = PBXBuildFile;
settings = {
};
};
F5EDAAF8035345D901A80180 = {
fileRef = F5EDAAF4035345D901A80180;
isa = PBXBuildFile;
settings = {
};
};
F5EDAAF9035345D901A80180 = {
fileRef = F5EDAAF5035345D901A80180;
isa = PBXBuildFile;
settings = {
};
};
F5EDAAFA035345D901A80180 = {
fileRef = F5EDAAF6035345D901A80180;
isa = PBXBuildFile;
settings = {
};
};
//F50
//F51
//F52
......
......@@ -75,6 +75,10 @@ class HTMLDocument;
class DOMImplementation
{
friend class Document;
#ifdef APPLE_CHANGES
friend class DOMImplementationImpl;
#endif
public:
DOMImplementation();
DOMImplementation(const DOMImplementation &other);
......@@ -249,6 +253,9 @@ class Document : public Node
friend class HTMLFrameElement;
friend class HTMLIFrameElement;
friend class HTMLObjectElement;
#ifdef APPLE_CHANGES
friend class DocumentImpl;
#endif
public:
Document();
......@@ -869,6 +876,10 @@ class DocumentType : public Node
{
friend class Document;
friend class DOMImplementation;
#ifdef APPLE_CHANGES
friend class DocumentTypeImpl;
#endif
public:
DocumentType();
DocumentType(const DocumentType &other);
......
......@@ -92,6 +92,9 @@ class Attr : public Node
friend class HTMLDocument;
friend class ElementImpl;
friend class NamedAttrMapImpl;
#ifdef APPLE_CHANGES
friend class AttrImpl;
#endif
public:
Attr();
......
......@@ -231,6 +231,9 @@ protected:
friend class Node;
friend class DocumentType;
friend class NodeImpl;
#ifdef APPLE_CHANGES
friend class NamedNodeMapImpl;
#endif
};
class NamedNodeMap;
......
......@@ -62,6 +62,9 @@ namespace DOM {
class DocumentImpl;
class DocumentType;
class DocumentTypeImpl;
#ifdef APPLE_CHANGES
class DOMImplementation;
#endif
class ElementImpl;
class EntityReferenceImpl;
class EventImpl;
......@@ -110,6 +113,10 @@ public:
// ever be present, and is used as a factory method for creating DocumentImpl objects
static DOMImplementationImpl *instance();
#ifdef APPLE_CHANGES
static DOMImplementation createInstance (DOMImplementationImpl *impl);
#endif
protected:
static DOMImplementationImpl *m_instance;
};
......@@ -400,6 +407,8 @@ signals:
#if APPLE_CHANGES
public:
KWQSignal m_finishedParsing;
static Document createInstance (DocumentImpl *impl);
#endif
protected:
......@@ -516,6 +525,10 @@ public:
DOMImplementationImpl *implementation() const { return m_implementation; }
void copyFrom(const DocumentTypeImpl&);
#ifdef APPLE_CHANGES
static DocumentType createInstance (DocumentTypeImpl *impl);
#endif
protected:
DOMImplementationImpl *m_implementation;
NamedNodeMapImpl* m_entities;
......
......@@ -137,6 +137,10 @@ public:
virtual bool childAllowed( NodeImpl *newChild );
virtual bool childTypeAllowed( unsigned short type );
#ifdef APPLE_CHANGES
static Attr createInstance(AttrImpl *impl);
#endif
protected:
ElementImpl* m_element;
AttributeImpl* m_attribute;
......
......@@ -353,6 +353,10 @@ public:
*/
virtual void childrenChanged();
#ifdef APPLE_CHANGES
static Node nodeInstance(NodeImpl *impl);
#endif
private: // members
DocumentPtr *document;
NodeImpl *m_previous;
......@@ -550,6 +554,10 @@ public:
// Other methods (not part of DOM)
virtual NodeImpl::Id mapId(const DOMString& namespaceURI, const DOMString& localName, bool readonly) = 0;
virtual bool isReadOnly() { return false; }
#ifdef APPLE_CHANGES
static NamedNodeMap createInstance(NamedNodeMapImpl *impl);
#endif
};
......
/*
WebCoreDOM.h
Copyright 2002, Apple, Inc. All rights reserved.
*/
#import <Foundation/Foundation.h>
#ifdef __cplusplus
namespace DOM {
class DOMImplementationImpl;
class NodeImpl;
class NodeListImpl;
class NamedNodeMapImpl;
}
typedef DOM::DOMImplementationImpl DOMImplementationImpl;
typedef DOM::NodeImpl NodeImpl;
typedef DOM::NodeListImpl NodeListImpl;
typedef DOM::NamedNodeMapImpl NamedNodeMapImpl;
#else