You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by nd...@apache.org on 2004/08/13 23:24:25 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/dom DocumentImpl.java

nddelima    2004/08/13 14:24:25

  Modified:    java/src/org/apache/xerces/dom DocumentImpl.java
  Log:
  Fixing a bug in RangeImpl related to the effect of DOM mutations (insertions) on Ranges.
  
  Revision  Changes    Path
  1.80      +9 -1      xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java
  
  Index: DocumentImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- DocumentImpl.java	24 Feb 2004 23:23:18 -0000	1.79
  +++ DocumentImpl.java	13 Aug 2004 21:24:25 -0000	1.80
  @@ -1058,6 +1058,14 @@
                   dispatchAggregateEvents(node, savedEnclosingAttr);
               }
           }
  +        
  +        // notify the range of insertions
  +        if (ranges != null) {
  +            int size = ranges.size();
  +            for (int i = 0; i != size; i++) {
  +                ((RangeImpl)ranges.elementAt(i)).insertedNodeFromDOM(newInternal);
  +            }
  +        }        
       }
   
       /**
  
  
  

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