mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-14 18:51:28 +00:00
Not part of build, fixing unix, missing object, const, part of #42228, r=pvb
This commit is contained in:
parent
ad183efa1f
commit
b76c3231d8
@ -50,6 +50,7 @@ OBJS =../source/base/ArrayList.o \
|
||||
../source/base/Tokenizer.o \
|
||||
../source/base/MozillaString.o \
|
||||
../source/net/URIUtils.o \
|
||||
../source/xml/dom/mozImpl/MozillaObjectWrapper.o \
|
||||
../source/xml/dom/mozImpl/MozillaAttr.o \
|
||||
../source/xml/dom/mozImpl/MozillaCDATASection.o \
|
||||
../source/xml/dom/mozImpl/MozillaCharacterData.o \
|
||||
|
@ -16,7 +16,7 @@
|
||||
* Peter Van der Beken, Peter.VanderBeken@pandora.be
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: NamespaceResolver.h,v 1.1 2000/08/27 05:58:56 kvisco%ziplink.net Exp $
|
||||
* $Id: NamespaceResolver.h,v 1.2 2000/09/04 16:25:24 axel%pike.org Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -35,7 +35,7 @@ public:
|
||||
/**
|
||||
* Returns the namespace URI for the given name
|
||||
**/
|
||||
virtual void getNameSpaceURI(String& name, String& nameSpaceURI) = 0;
|
||||
virtual void getNameSpaceURI(const String& name, String& nameSpaceURI) = 0;
|
||||
|
||||
}; //-- NamespaceResolver
|
||||
|
||||
|
@ -21,13 +21,13 @@
|
||||
* Keith Visco
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: XMLDOMUtils.cpp,v 1.5 2000/08/26 04:41:12 Peter.VanderBeken%pandora.be Exp $
|
||||
* $Id: XMLDOMUtils.cpp,v 1.6 2000/09/04 16:25:25 axel%pike.org Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* XMLDOMUtils
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.5 $ $Date: 2000/08/26 04:41:12 $
|
||||
* @version $Revision: 1.6 $ $Date: 2000/09/04 16:25:25 $
|
||||
**/
|
||||
|
||||
#include "XMLDOMUtils.h"
|
||||
@ -98,7 +98,7 @@ Node* XMLDOMUtils::copyNode(Node* node, Document* owner, NamespaceResolver* reso
|
||||
for ( i = 0; i < attList->getLength(); i++ ) {
|
||||
Attr* attr = (Attr*) attList->item(i);
|
||||
#ifdef MOZ_XSL
|
||||
resolver->getNameSpaceURI(attr->getName(), nameSpaceURI);
|
||||
resolver->getNameSpaceURI(attr->getName(), nameSpaceURI);
|
||||
newElement->setAttributeNS(nameSpaceURI, attr->getName(), attr->getValue());
|
||||
#else
|
||||
newElement->setAttribute(attr->getName(), attr->getValue());
|
||||
|
@ -101,8 +101,8 @@ class MozillaObjectWrapper : public MITREObject
|
||||
MozillaObjectWrapper(nsISupports* aNsObject, Document* aaOwner);
|
||||
~MozillaObjectWrapper();
|
||||
|
||||
virtual void setNSObj(nsISupports* aNsObject);
|
||||
virtual void setNSObj(nsISupports* aNsObject, Document* aaOwner);
|
||||
void setNSObj(nsISupports* aNsObject);
|
||||
void setNSObj(nsISupports* aNsObject, Document* aaOwner);
|
||||
|
||||
void* getKey() const;
|
||||
|
||||
|
@ -25,13 +25,13 @@
|
||||
* -- added code in ::resolveFunctionCall to support the
|
||||
* document() function.
|
||||
*
|
||||
* $Id: ProcessorState.cpp,v 1.6 2000/08/26 04:28:27 Peter.VanderBeken%pandora.be Exp $
|
||||
* $Id: ProcessorState.cpp,v 1.7 2000/09/04 16:25:27 axel%pike.org Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implementation of ProcessorState
|
||||
* Much of this code was ported from XSL:P
|
||||
* @version $Revision: 1.6 $ $Date: 2000/08/26 04:28:27 $
|
||||
* @version $Revision: 1.7 $ $Date: 2000/09/04 16:25:27 $
|
||||
**/
|
||||
|
||||
#include "ProcessorState.h"
|
||||
@ -180,7 +180,7 @@ MBool ProcessorState::addToResultTree(Node* node) {
|
||||
Attr* attr = (Attr*)node;
|
||||
#ifdef MOZ_XSL
|
||||
String nameSpaceURI;
|
||||
getNameSpaceURI(attr->getName(), nameSpaceURI);
|
||||
getNameSpaceURI(attr->getName() , nameSpaceURI);
|
||||
element->setAttributeNS(nameSpaceURI, attr->getName(), attr->getValue());
|
||||
#else
|
||||
element->setAttribute(attr->getName(),attr->getValue());
|
||||
@ -405,7 +405,7 @@ Element* ProcessorState::getNamedTemplate(String& name) {
|
||||
/**
|
||||
* Returns the namespace URI for the given name
|
||||
**/
|
||||
void ProcessorState::getNameSpaceURI(String& name, String& nameSpaceURI) {
|
||||
void ProcessorState::getNameSpaceURI(const String& name, String& nameSpaceURI) {
|
||||
String prefix;
|
||||
|
||||
XMLUtils::getNameSpace(name, prefix);
|
||||
|
@ -21,7 +21,7 @@
|
||||
* Keith Visco, kvisco@ziplink.net
|
||||
* -- original author.
|
||||
*
|
||||
* $Id: ProcessorState.h,v 1.5 2000/08/26 04:28:28 Peter.VanderBeken%pandora.be Exp $
|
||||
* $Id: ProcessorState.h,v 1.6 2000/09/04 16:25:27 axel%pike.org Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@
|
||||
/**
|
||||
* Class used for keeping the current state of the XSL Processor
|
||||
* @author <a href="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.5 $ $Date: 2000/08/26 04:28:28 $
|
||||
* @version $Revision: 1.6 $ $Date: 2000/09/04 16:25:27 $
|
||||
**/
|
||||
class ProcessorState : public ContextState,
|
||||
public NamespaceResolver
|
||||
@ -291,7 +291,7 @@ public:
|
||||
/**
|
||||
* Returns the namespace URI for the given name
|
||||
**/
|
||||
void getNameSpaceURI(String& name, String& nameSpaceURI);
|
||||
void getNameSpaceURI(const String& name, String& nameSpaceURI);
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user