xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From leh...@apache.org
Subject cvs commit: xml-xerces/java/src/org/apache/xerces/dom DeferredElementImpl.java DeferredElementNSImpl.java DeferredEntityReferenceImpl.java ElementImpl.java
Date Thu, 08 Feb 2001 17:28:08 GMT
lehors      01/02/08 09:28:04

  Modified:    java/src/org/apache/xerces/dom DeferredElementImpl.java
                        DeferredElementNSImpl.java
                        DeferredEntityReferenceImpl.java ElementImpl.java
  Log:
  make sure to turn off mutation events when synchronizing
  
  Revision  Changes    Path
  1.9       +8 -0      xml-xerces/java/src/org/apache/xerces/dom/DeferredElementImpl.java
  
  Index: DeferredElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DeferredElementImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DeferredElementImpl.java	2000/07/07 00:36:10	1.8
  +++ DeferredElementImpl.java	2001/02/08 17:27:27	1.9
  @@ -146,6 +146,11 @@
           // fluff data
           DeferredDocumentImpl ownerDocument =
               (DeferredDocumentImpl)this.ownerDocument;
  +
  +        // we don't want to generate any event for this so turn them off
  +        boolean orig = ownerDocument.mutationEvents;
  +        ownerDocument.mutationEvents = false;
  +
           int elementTypeName = ownerDocument.getNodeName(fNodeIndex);
           StringPool pool = ownerDocument.getStringPool();
           name = pool.toString(elementTypeName);
  @@ -161,6 +166,9 @@
                   index = ownerDocument.getPrevSibling(index);
               } while (index != -1);
           }
  +
  +        // set mutation events flag back to its original value
  +        ownerDocument.mutationEvents = orig;
   
       } // synchronizeData()
   
  
  
  
  1.8       +9 -1      xml-xerces/java/src/org/apache/xerces/dom/DeferredElementNSImpl.java
  
  Index: DeferredElementNSImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DeferredElementNSImpl.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DeferredElementNSImpl.java	2000/07/07 00:36:10	1.7
  +++ DeferredElementNSImpl.java	2001/02/08 17:27:33	1.8
  @@ -56,7 +56,7 @@
    */
   
   
  -/* $Id: DeferredElementNSImpl.java,v 1.7 2000/07/07 00:36:10 lehors Exp $ */
  +/* $Id: DeferredElementNSImpl.java,v 1.8 2001/02/08 17:27:33 lehors Exp $ */
   
   /*
    * WARNING: because java doesn't support multi-inheritance some code is
  @@ -134,6 +134,11 @@
           // fluff data
           DeferredDocumentImpl ownerDocument =
               (DeferredDocumentImpl) this.ownerDocument;
  +
  +        // we don't want to generate any event for this so turn them off
  +        boolean orig = ownerDocument.mutationEvents;
  +        ownerDocument.mutationEvents = false;
  +
           int elementQName = ownerDocument.getNodeName(fNodeIndex);
           StringPool pool = ownerDocument.getStringPool();
           name = pool.toString(elementQName);
  @@ -161,6 +166,9 @@
                   attrIndex = ownerDocument.getPrevSibling(attrIndex);
               } while (attrIndex != -1);
           }
  +
  +        // set mutation events flag back to its original value
  +        ownerDocument.mutationEvents = orig;
   
       } // synchronizeData()
   
  
  
  
  1.9       +1 -1      xml-xerces/java/src/org/apache/xerces/dom/DeferredEntityReferenceImpl.java
  
  Index: DeferredEntityReferenceImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DeferredEntityReferenceImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DeferredEntityReferenceImpl.java	2000/08/18 01:58:34	1.8
  +++ DeferredEntityReferenceImpl.java	2001/02/08 17:27:36	1.9
  @@ -211,7 +211,7 @@
                   }
               }
               // set mutation events flag back to its original value
  -            ownerDocument().mutationEvents = orig;
  +            ownerDocument.mutationEvents = orig;
           }
   
           // if not found, create entity at this reference
  
  
  
  1.34      +7 -0      xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java
  
  Index: ElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- ElementImpl.java	2001/02/06 02:03:42	1.33
  +++ ElementImpl.java	2001/02/08 17:27:39	1.34
  @@ -784,8 +784,15 @@
           // no need to sync in the future
           needsSyncData(false);
   
  +        // we don't want to generate any event for this so turn them off
  +        boolean orig = ownerDocument.mutationEvents;
  +        ownerDocument.mutationEvents = false;
  +
           // attributes
           setupDefaultAttributes();
  +
  +        // set mutation events flag back to its original value
  +        ownerDocument.mutationEvents = orig;
   
       } // synchronizeData()
   
  
  
  

Mime
View raw message