-
beidson@apple.com authored
2008-03-26 Brady Eidson <beidson@apple.com> Reviewed by Darin When we create a WebArchive, we walk every node from some starting point, asking each node along the way "What are your subresource URLs?" That logic is currently in DOMNode in WebKitMac - this patch moves that ability down into WebCore::Node * WebCore.base.exp: * dom/Node.cpp: (WebCore::Node::getSubresourceURLs): (WebCore::Node::getSubresourceAttributeStrings): Virtual and empty. Subclasses of Node that have subresources will override it. * dom/ProcessingInstruction.cpp: (WebCore::ProcessingInstruction::getSubresourceAttributeStrings): * dom/ProcessingInstruction.h: * html/HTMLBodyElement.cpp: (WebCore::HTMLBodyElement::getSubresourceAttributeStrings): * html/HTMLBodyElement.h: * html/HTMLEmbedElement.cpp: (WebCore::HTMLEmbedElement::getSubresourceAttributeStrings): * html/HTMLEmbedElement.h: * html/HTMLImageElement.cpp: (WebCore::HTMLImageElement::getSubresourceAttributeStrings): * html/HTMLImageElement.h: * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::getSubresourceAttributeStrings): * html/HTMLInputElement.h: * html/HTMLLinkElement.cpp: (WebCore::HTMLLinkElement::getSubresourceAttributeStrings): * html/HTMLLinkElement.h: * html/HTMLObjectElement.cpp: (WebCore::HTMLObjectElement::getSubresourceAttributeStrings): * html/HTMLObjectElement.h: * html/HTMLParamElement.cpp: (WebCore::HTMLParamElement::getSubresourceAttributeStrings): * html/HTMLParamElement.h: * html/HTMLScriptElement.cpp: (WebCore::HTMLScriptElement::getSubresourceAttributeStrings): * html/HTMLScriptElement.h: * html/HTMLTableCellElement.cpp: (WebCore::HTMLTableCellElement::getSubresourceAttributeStrings): * html/HTMLTableCellElement.h: * html/HTMLTableElement.cpp: (WebCore::HTMLTableElement::getSubresourceAttributeStrings): * html/HTMLTableElement.h: * svg/SVGCursorElement.cpp: (WebCore::SVGCursorElement::getSubresourceAttributeStrings): * svg/SVGCursorElement.h: * svg/SVGFEImageElement.cpp: (WebCore::SVGFEImageElement::getSubresourceAttributeStrings): * svg/SVGFEImageElement.h: * svg/SVGImageElement.cpp: (WebCore::SVGImageElement::getSubresourceAttributeStrings): * svg/SVGImageElement.h: * svg/SVGScriptElement.cpp: (WebCore::SVGScriptElement::getSubresourceAttributeStrings): * svg/SVGScriptElement.h: WebKit/mac: 2008-03-26 Brady Eidson <beidson@apple.com> Reviewed by Darin When we create a WebArchive, we walk every node from some starting point, asking each node along the way "What are your subresource URLs?" That logic is currently in DOMNode in WebKitMac - this patch moves that ability down into WebCore::Node * DOM/WebDOMOperations.mm: (-[DOMNode _subresourceURLs]): One generic DOMNode method can now handle all DOMNodes by calling into individual WebCore::Node implementations * DOM/WebDOMOperationsPrivate.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
a4fb38f9