You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/09/23 22:02:31 UTC

cvs commit: xml-xerces/c/src/xercesc/dom/impl DOMAttrImpl.cpp DOMCDATASectionImpl.cpp DOMDocumentFragmentImpl.cpp

tng         2002/09/23 13:02:31

  Modified:    c/src/xercesc/dom/impl DOMAttrImpl.cpp
                        DOMCDATASectionImpl.cpp DOMDocumentFragmentImpl.cpp
  Log:
  DOM Performance: call fParent.fOwnerDocument directly instead of fNode.getOwnerDocument
  
  Revision  Changes    Path
  1.10      +2 -2      xml-xerces/c/src/xercesc/dom/impl/DOMAttrImpl.cpp
  
  Index: DOMAttrImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMAttrImpl.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DOMAttrImpl.cpp	17 Sep 2002 13:11:48 -0000	1.9
  +++ DOMAttrImpl.cpp	23 Sep 2002 20:02:31 -0000	1.10
  @@ -325,7 +325,7 @@
        const XMLCh*           DOMAttrImpl::getLocalName() const                    {return fNode.getLocalName (); };
        const XMLCh*           DOMAttrImpl::getNamespaceURI() const                 {return fNode.getNamespaceURI (); };
              DOMNode*         DOMAttrImpl::getNextSibling() const                  {return fNode.getNextSibling (); };
  -           DOMDocument*     DOMAttrImpl::getOwnerDocument() const                {return fNode.getOwnerDocument (); };
  +           DOMDocument*     DOMAttrImpl::getOwnerDocument() const                {return fParent.fOwnerDocument; };
        const XMLCh*           DOMAttrImpl::getPrefix() const                       {return fNode.getPrefix (); };
              DOMNode*         DOMAttrImpl::getParentNode() const                   {return fNode.getParentNode (); };
              DOMNode*         DOMAttrImpl::getPreviousSibling() const              {return fNode.getPreviousSibling (); };
  
  
  
  1.10      +2 -2      xml-xerces/c/src/xercesc/dom/impl/DOMCDATASectionImpl.cpp
  
  Index: DOMCDATASectionImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMCDATASectionImpl.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DOMCDATASectionImpl.cpp	16 Aug 2002 19:20:28 -0000	1.9
  +++ DOMCDATASectionImpl.cpp	23 Sep 2002 20:02:31 -0000	1.10
  @@ -204,7 +204,7 @@
        const XMLCh*           DOMCDATASectionImpl::getNamespaceURI() const                 {return fNode.getNamespaceURI (); };
              DOMNode*         DOMCDATASectionImpl::getNextSibling() const                  {return fChild.getNextSibling (); };
        const XMLCh*           DOMCDATASectionImpl::getNodeValue() const                    {return fCharacterData.getNodeValue (); };
  -           DOMDocument*     DOMCDATASectionImpl::getOwnerDocument() const                {return fNode.getOwnerDocument (); };
  +           DOMDocument*     DOMCDATASectionImpl::getOwnerDocument() const                {return fParent.fOwnerDocument; };
        const XMLCh*           DOMCDATASectionImpl::getPrefix() const                       {return fNode.getPrefix (); };
              DOMNode*         DOMCDATASectionImpl::getParentNode() const                   {return fChild.getParentNode (this); };
              DOMNode*         DOMCDATASectionImpl::getPreviousSibling() const              {return fChild.getPreviousSibling (this); };
  
  
  
  1.8       +2 -2      xml-xerces/c/src/xercesc/dom/impl/DOMDocumentFragmentImpl.cpp
  
  Index: DOMDocumentFragmentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMDocumentFragmentImpl.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DOMDocumentFragmentImpl.cpp	16 Aug 2002 19:20:28 -0000	1.7
  +++ DOMDocumentFragmentImpl.cpp	23 Sep 2002 20:02:31 -0000	1.8
  @@ -145,7 +145,7 @@
        const XMLCh*           DOMDocumentFragmentImpl::getNamespaceURI() const                 {return fNode.getNamespaceURI (); };
              DOMNode*         DOMDocumentFragmentImpl::getNextSibling() const                  {return fNode.getNextSibling (); };
        const XMLCh*           DOMDocumentFragmentImpl::getNodeValue() const                    {return fNode.getNodeValue (); };
  -           DOMDocument*     DOMDocumentFragmentImpl::getOwnerDocument() const                {return fNode.getOwnerDocument (); };
  +           DOMDocument*     DOMDocumentFragmentImpl::getOwnerDocument() const                {return fParent.fOwnerDocument; };
        const XMLCh*           DOMDocumentFragmentImpl::getPrefix() const                       {return fNode.getPrefix (); };
              DOMNode*         DOMDocumentFragmentImpl::getParentNode() const                   {return fNode.getParentNode (); };
              DOMNode*         DOMDocumentFragmentImpl::getPreviousSibling() const              {return fNode.getPreviousSibling (); };
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org