You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ca...@apache.org on 2006/11/24 05:50:15 UTC

svn commit: r478769 [1/3] - in /xmlgraphics/batik/trunk: ./ documentation-sources/content/xdocs/ documentation-sources/content/xdocs/using/ lib/ lib/build/ resources/org/apache/batik/apps/svgbrowser/resources/ sources/ sources/org/apache/batik/bridge/ ...

Author: cam
Date: Thu Nov 23 20:50:12 2006
New Revision: 478769

URL: http://svn.apache.org/viewvc?view=rev&rev=478769
Log:
1. Using XML Commons External 1.3.04 (xml-apis.jar and xml-apis-ext.jar), which
   now includes SAC, DOM 3 Core, and the SMIL Animation and SVG 1.1 DOM
   bindings.  Plus corresponding documentation changes.
2. Removed jaxp.jar from lib/build, since xml-apis.jar now includes JAXP.
2. The DOM Level 3 Events bindings have been updated to the latest draft,
   and are now included in the sources tree rather than precompiled in
   xml-apis-dom3.jar.
3. Custom event handling updated to match the new draft.  (No messy reflection
   any more.)
4. Rhino updated the 1.6R5, which is MPL licensed.

Added:
    xmlgraphics/batik/trunk/lib/README.xml-apis-ext.txt   (with props)
    xmlgraphics/batik/trunk/lib/README.xml-apis.txt   (with props)
    xmlgraphics/batik/trunk/lib/xml-apis-ext.jar   (with props)
    xmlgraphics/batik/trunk/lib/xml-apis.jar   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/CustomEvent.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/DocumentEvent.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/Event.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/EventException.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/EventListener.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/EventTarget.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/KeyboardEvent.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/MouseEvent.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/MutationEvent.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/MutationNameEvent.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/TextEvent.java   (with props)
    xmlgraphics/batik/trunk/sources/org/w3c/dom/events/UIEvent.java   (with props)
Removed:
    xmlgraphics/batik/trunk/lib/LICENSE.xml-apis-dom3.txt
    xmlgraphics/batik/trunk/lib/build/LICENSE.jaxp.txt
    xmlgraphics/batik/trunk/lib/build/README.jaxp.txt
    xmlgraphics/batik/trunk/lib/build/jaxp.jar
    xmlgraphics/batik/trunk/lib/xml-apis-dom3.jar
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/CustomEvent.java
    xmlgraphics/batik/trunk/sources/org/w3c/css/
    xmlgraphics/batik/trunk/sources/org/w3c/dom/smil/
    xmlgraphics/batik/trunk/sources/org/w3c/dom/svg/
Modified:
    xmlgraphics/batik/trunk/.classpath
    xmlgraphics/batik/trunk/build.xml
    xmlgraphics/batik/trunk/documentation-sources/content/xdocs/contributors.xml
    xmlgraphics/batik/trunk/documentation-sources/content/xdocs/using/swing.xml
    xmlgraphics/batik/trunk/lib/LICENSE.js.txt
    xmlgraphics/batik/trunk/lib/README.js.txt
    xmlgraphics/batik/trunk/lib/js.jar
    xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy
    xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy
    xmlgraphics/batik/trunk/sources/batik-browser.mf
    xmlgraphics/batik/trunk/sources/batik-pp.mf
    xmlgraphics/batik/trunk/sources/batik-rasterizer.mf
    xmlgraphics/batik/trunk/sources/batik-slideshow.mf
    xmlgraphics/batik/trunk/sources/batik.mf
    xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGAElementBridge.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/AbstractEvent.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/DOMCustomEvent.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/EventSupport.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/dom/svg12/XBLEventSupport.java
    xmlgraphics/batik/trunk/sources/org/apache/batik/script/rhino/EventTargetWrapper.java

Modified: xmlgraphics/batik/trunk/.classpath
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/.classpath?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/.classpath (original)
+++ xmlgraphics/batik/trunk/.classpath Thu Nov 23 20:50:12 2006
@@ -7,7 +7,8 @@
 	<classpathentry kind="lib" path="lib/js.jar"/>
 	<classpathentry kind="lib" path="lib/pdf-transcoder.jar"/>
 	<classpathentry kind="lib" path="lib/xerces_2_5_0.jar"/>
-	<classpathentry kind="lib" path="lib/xml-apis-dom3.jar"/>
+	<classpathentry kind="lib" path="lib/xml-apis.jar"/>
+	<classpathentry kind="lib" path="lib/xml-apis-ext.jar"/>
 	<classpathentry excluding="**/.svn/" kind="src" path="resources"/>
 	<classpathentry excluding="**/.svn/" kind="src" path="test-resources"/>
 	<classpathentry kind="lib" path="lib/xalan-2.6.0.jar"/>

Modified: xmlgraphics/batik/trunk/build.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/build.xml?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/build.xml (original)
+++ xmlgraphics/batik/trunk/build.xml Thu Nov 23 20:50:12 2006
@@ -197,9 +197,10 @@
       <include name="stylebook*.jar"/>
     </fileset>
     <fileset dir="lib">
-      <include name="xerces*.jar"/>
-      <include name="xml-apis-dom3.jar"/>
       <include name="xalan*.jar"/>
+      <include name="xerces*.jar"/>
+      <include name="xml-apis.jar"/>
+      <include name="xml-apis-ext.jar"/>
     </fileset>
   </path>
 
@@ -650,10 +651,7 @@
     <jar jarfile="${build}/lib/${project}-libs.jar">
       <fileset dir="${dest}" excludes="**/.svn/">
         <include name="org/apache/batik/**"/>
-        <include name="org/w3c/css/sac/**"/>
-        <include name="org/w3c/dom/smil/**"/>
-        <include name="org/w3c/dom/svg/**"/>
-        <include name="org/w3c/dom/svg12/**"/>
+        <include name="org/w3c/dom/events/**"/>
       </fileset>
       <fileset dir="${resources}" excludes="**/.svn/">
         <include name="**"/>
@@ -707,7 +705,7 @@
     <delete dir="${build}/tmp"/>
   </target>
 
-  <!-- External packages (dependencies: none) -->
+  <!-- External code (just DOM Level 3 Events) (dependencies: none) -->
   <target name="ext-jar" depends="compile, prepare-build">
     <jar jarfile="${build}/lib/${project}-ext.jar">
       <fileset dir="${dest}">

Modified: xmlgraphics/batik/trunk/documentation-sources/content/xdocs/contributors.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/documentation-sources/content/xdocs/contributors.xml?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/documentation-sources/content/xdocs/contributors.xml (original)
+++ xmlgraphics/batik/trunk/documentation-sources/content/xdocs/contributors.xml Thu Nov 23 20:50:12 2006
@@ -68,7 +68,8 @@
             Cameron McCormack is a postgraduate student at Monash University in
             Melbourne, Australia, where he is undertaking his PhD.  His thesis
             relates to adaptive layout of diagrams, and he has worked on an
-            extension to SVG to allow expressions as attribute values.  Cameron
+            extension to SVG to allow expressions as attribute values.  He also
+            represents National ICT Australia on the SVG Working Group.  Cameron
             has been a committer since 2004, and has contributed code mostly
             related to SMIL animation and upcoming SVG 1.2 support.
           </p>

Modified: xmlgraphics/batik/trunk/documentation-sources/content/xdocs/using/swing.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/documentation-sources/content/xdocs/using/swing.xml?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/documentation-sources/content/xdocs/using/swing.xml (original)
+++ xmlgraphics/batik/trunk/documentation-sources/content/xdocs/using/swing.xml Thu Nov 23 20:50:12 2006
@@ -62,7 +62,8 @@
         If you try this example, do not forget to set your
         <code>CLASSPATH</code> so that it contains the Batik classes and
         resources, as well as Xerces (<code>lib/xerces_2_5_0.jar</code>)
-        and the XML APIs jar (<code>lib/xml-apis-dom3.jar</code>).
+        and the XML APIs jars (<code>lib/xml-apis.jar</code> and
+        <code>lib/xml-apis-ext.jar</code>).
       </note>
 <source>import java.awt.*;
 import java.awt.event.*;

Modified: xmlgraphics/batik/trunk/lib/LICENSE.js.txt
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/lib/LICENSE.js.txt?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/lib/LICENSE.js.txt (original)
+++ xmlgraphics/batik/trunk/lib/LICENSE.js.txt Thu Nov 23 20:50:12 2006
@@ -1,16 +1,16 @@
-This distribution includes the Mozilla Rhino 1.6 release 4 binary distribution
+This distribution includes the Mozilla Rhino 1.6 release 5 binary distribution.
 without code modifications.
 
 You can also get that distribution from the following URL:
 
-  ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_6R4.zip
+  ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_6R5.zip
 
 Source code for Rhino is available on the Mozilla web site:
 
   http://www.mozilla.org/rhino/
 
-Rhino is licensed under the NPL (Netscape Public License), which 
-is duplicated below.
+Rhino is licensed under both the MPL (Mozilla Public License) 1.1 and the
+GPL (GNU General Public License) 2.0, which are duplicated below.
 
 The Rhino jar also includes four classes:
   org.mozilla.javascript.tools.debugger.downloaded.AbstractCellEditor.java
@@ -65,104 +65,6 @@
 
 ==============================================================================
 
-AMENDMENTS
-
-     The Netscape Public License Version 1.1 ("NPL") consists of the
-     Mozilla Public License Version 1.1 with the following Amendments,
-     including Exhibit A-Netscape Public License.  Files identified with
-     "Exhibit A-Netscape Public License" are governed by the Netscape
-     Public License Version 1.1.
-
-     Additional Terms applicable to the Netscape Public License.
-          I. Effect.
-          These additional terms described in this Netscape Public
-          License -- Amendments shall apply to the Mozilla Communicator
-          client code and to all Covered Code under this License.
-
-          II. "Netscape's Branded Code" means Covered Code that Netscape
-          distributes and/or permits others to distribute under one or more
-          trademark(s) which are controlled by Netscape but which are not
-          licensed for use under this License.
-
-          III. Netscape and logo.
-          This License does not grant any rights to use the trademarks
-          "Netscape", the "Netscape N and horizon" logo or the "Netscape
-          lighthouse" logo, "Netcenter", "Gecko", "Java" or "JavaScript",
-          "Smart Browsing" even if such marks are included in the Original
-          Code or Modifications.
-
-          IV. Inability to Comply Due to Contractual Obligation.
-          Prior to licensing the Original Code under this License, Netscape
-          has licensed third party code for use in Netscape's Branded Code.
-          To the extent that Netscape is limited contractually from making
-          such third party code available under this License, Netscape may
-          choose to reintegrate such code into Covered Code without being
-          required to distribute such code in Source Code form, even if
-          such code would otherwise be considered "Modifications" under
-          this License.
-
-          V. Use of Modifications and Covered Code by Initial Developer.
-               V.1. In General.
-               The obligations of Section 3 apply to Netscape, except to
-               the extent specified in this Amendment, Section V.2 and V.3.
-
-               V.2. Other Products.
-               Netscape may include Covered Code in products other than the
-               Netscape's Branded Code which are released by Netscape
-               during the two (2) years following the release date of the
-               Original Code, without such additional products becoming
-               subject to the terms of this License, and may license such
-               additional products on different terms from those contained
-               in this License.
-
-               V.3. Alternative Licensing.
-               Netscape may license the Source Code of Netscape's Branded
-               Code, including Modifications incorporated therein, without
-               such Netscape Branded Code becoming subject to the terms of
-               this License, and may license such Netscape Branded Code on
-               different terms from those contained in this License.
-
-          VI. Litigation.
-          Notwithstanding the limitations of Section 11 above, the
-          provisions regarding litigation in Section 11(a), (b) and (c) of
-          the License shall apply to all disputes relating to this License.
-
-     EXHIBIT A-Netscape Public License.
-
-          "The contents of this file are subject to the Netscape Public
-          License Version 1.1 (the "License"); you may not use this file
-          except in compliance with the License. You may obtain a copy of
-          the License at http://www.mozilla.org/NPL/
-
-          Software distributed under the License is distributed on an "AS
-          IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-          implied. See the License for the specific language governing
-          rights and limitations under the License.
-
-          The Original Code is Mozilla Communicator client code, released
-          March 31, 1998.
-
-          The Initial Developer of the Original Code is Netscape
-          Communications Corporation. Portions created by Netscape are
-          Copyright (C) 1998-1999 Netscape Communications Corporation. All
-          Rights Reserved.
-
-          Contributor(s): ______________________________________.
-
-          Alternatively, the contents of this file may be used under the
-          terms of the _____ license (the "[___] License"), in which case
-          the provisions of [______] License are applicable  instead of
-          those above.  If you wish to allow use of your version of this
-          file only under the terms of the [____] License and not to allow
-          others to use your version of this file under the NPL, indicate
-          your decision by deleting  the provisions above and replace  them
-          with the notice and other provisions required by the [___]
-          License.  If you do not delete the provisions above, a recipient
-          may use your version of this file under either the NPL or the
-          [___] License."
-
-     ----------------------------------------------------------------------
-
                           MOZILLA PUBLIC LICENSE
                                 Version 1.1
 
@@ -633,7 +535,346 @@
      use the text of this Exhibit A rather than the text found in the
      Original Code Source Code for Your Modifications.]
 
-
 ==============================================================================
 
+		    GNU GENERAL PUBLIC LICENSE
+		       Version 2, June 1991
 
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+		    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+			    NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+	    How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
+
+==============================================================================

Modified: xmlgraphics/batik/trunk/lib/README.js.txt
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/lib/README.js.txt?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/lib/README.js.txt (original)
+++ xmlgraphics/batik/trunk/lib/README.js.txt Thu Nov 23 20:50:12 2006
@@ -1,13 +1,12 @@
-This distribution includes the Mozilla Rhino 1.6 release 4 binary distribution
-without code modifications.
+This distribution includes the Mozilla Rhino 1.6 release 5 binary distribution.
 
 You can also get that distribution from the following URL:
 
-  ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_6R4.zip
+  ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_6R5.zip
 
 Source code for Rhino is available on the Mozilla web site:
 
   http://www.mozilla.org/rhino/
 
-Rhino is licensed under the NPL (Netscape Public License), which 
-is in the LICENSE.js.txt file.
+Rhino is licensed under both the MPL (Mozilla Public License) 1.1 and the
+GPL (GNU General Public License) 2.0, which are in the LICENSE.js.txt file.

Added: xmlgraphics/batik/trunk/lib/README.xml-apis-ext.txt
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/lib/README.xml-apis-ext.txt?view=auto&rev=478769
==============================================================================
--- xmlgraphics/batik/trunk/lib/README.xml-apis-ext.txt (added)
+++ xmlgraphics/batik/trunk/lib/README.xml-apis-ext.txt Thu Nov 23 20:50:12 2006
@@ -0,0 +1,19 @@
+This distribution includes xml-apis-ext.jar from the XML Commons External
+1.3.04 binary distribution, which can also be obtained from:
+
+  http://xml.apache.org/mirrors.cgi
+
+Source code is available from the XML Commons web site:
+
+  http://xml.apache.org/commons/
+
+xml-apis-ext.jar contains:
+
+  - SAC 1.3
+  - SMIL Java bindings
+  - SVG 1.1 Java bindings
+
+SAC 1.3, the SMIL Java bindings and the SVG 1.1 Java bindings are licensed
+under the W3C Software License.  Related documentation is licensed under the
+W3C Document License.  See LICENSE.dom-software.txt and
+LICENSE.dom-documentation.txt.

Propchange: xmlgraphics/batik/trunk/lib/README.xml-apis-ext.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: xmlgraphics/batik/trunk/lib/README.xml-apis.txt
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/lib/README.xml-apis.txt?view=auto&rev=478769
==============================================================================
--- xmlgraphics/batik/trunk/lib/README.xml-apis.txt (added)
+++ xmlgraphics/batik/trunk/lib/README.xml-apis.txt Thu Nov 23 20:50:12 2006
@@ -0,0 +1,30 @@
+This distribution includes xml-apis.jar from the XML Commons External
+1.3.04 binary distribution, which can also be obtained from:
+
+  http://xml.apache.org/mirrors.cgi
+
+Source code is available from the XML Commons web site:
+
+  http://xml.apache.org/commons/
+
+xml-apis.jar contains:
+
+  - DOM Level 2 Events
+  - DOM Level 2 HTML
+  - DOM Level 2 Style
+  - DOM Level 2 Traversal and Range
+  - DOM Level 2 Views
+  - DOM Level 3 Core
+  - DOM Level 3 Load and Save
+  - DOM Level 3 XPath
+  - JAXP 1.3 (JSR 206)
+  - SAX
+
+All DOM code is licensed under the W3C Software License, and DOM documentation
+under the W3C Document License.  See LICENSE.dom-software.txt and
+LICENSE.dom-documentation.txt.
+
+The JAXP 1.3 code is licensed under the Apache Software License 2.0.  See
+LICENSE in the root directory of this distribution.
+
+SAX is public domain.  See LICENSE.sax.txt.

Propchange: xmlgraphics/batik/trunk/lib/README.xml-apis.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: xmlgraphics/batik/trunk/lib/js.jar
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/lib/js.jar?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
Binary files - no diff available.

Added: xmlgraphics/batik/trunk/lib/xml-apis-ext.jar
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/lib/xml-apis-ext.jar?view=auto&rev=478769
==============================================================================
Binary file - no diff available.

Propchange: xmlgraphics/batik/trunk/lib/xml-apis-ext.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: xmlgraphics/batik/trunk/lib/xml-apis.jar
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/lib/xml-apis.jar?view=auto&rev=478769
==============================================================================
Binary file - no diff available.

Propchange: xmlgraphics/batik/trunk/lib/xml-apis.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy (original)
+++ xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.bin.policy Thu Nov 23 20:50:12 2006
@@ -18,7 +18,11 @@
 // $Id$
 // -----------------------------------------------------------------------------
 
-grant codeBase "${app.jar.base}/lib/xml-apis-dom3.jar" {
+grant codeBase "${app.jar.base}/lib/xml-apis.jar" {
+  permission java.security.AllPermission;
+};
+
+grant codeBase "${app.jar.base}/lib/xml-apis-ext.jar" {
   permission java.security.AllPermission;
 };
 

Modified: xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy (original)
+++ xmlgraphics/batik/trunk/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy Thu Nov 23 20:50:12 2006
@@ -22,7 +22,11 @@
   permission java.security.AllPermission;
 };
 
-grant codeBase "${app.dev.base}/lib/xml-apis-dom3.jar" {
+grant codeBase "${app.dev.base}/lib/xml-apis.jar" {
+  permission java.security.AllPermission;
+};
+
+grant codeBase "${app.dev.base}/lib/xml-apis-ext.jar" {
   permission java.security.AllPermission;
 };
 

Modified: xmlgraphics/batik/trunk/sources/batik-browser.mf
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/batik-browser.mf?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/batik-browser.mf (original)
+++ xmlgraphics/batik/trunk/sources/batik-browser.mf Thu Nov 23 20:50:12 2006
@@ -18,5 +18,6 @@
             lib/batik-xml.jar \
             lib/xerces_2_5_0.jar \
             lib/xalan-2.6.0.jar \
-            lib/xml-apis-dom3.jar \
+            lib/xml-apis.jar \
+            lib/xml-apis-ext.jar \
             lib/js.jar

Modified: xmlgraphics/batik/trunk/sources/batik-pp.mf
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/batik-pp.mf?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/batik-pp.mf (original)
+++ xmlgraphics/batik/trunk/sources/batik-pp.mf Thu Nov 23 20:50:12 2006
@@ -6,4 +6,5 @@
             lib/batik-transcoder.jar \
             lib/batik-util.jar \
             lib/batik-xml.jar \
-            lib/xml-apis-dom3.jar
+            lib/xml-apis.jar \
+            lib/xml-apis-ext.jar

Modified: xmlgraphics/batik/trunk/sources/batik-rasterizer.mf
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/batik-rasterizer.mf?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/batik-rasterizer.mf (original)
+++ xmlgraphics/batik/trunk/sources/batik-rasterizer.mf Thu Nov 23 20:50:12 2006
@@ -16,6 +16,7 @@
             lib/batik-xml.jar \
             lib/xerces_2_5_0.jar \
             lib/xalan-2.6.0.jar \
-            lib/xml-apis-dom3.jar \
+            lib/xml-apis.jar \
+            lib/xml-apis-ext.jar \
             lib/pdf-transcoder.jar \
             lib/js.jar

Modified: xmlgraphics/batik/trunk/sources/batik-slideshow.mf
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/batik-slideshow.mf?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/batik-slideshow.mf (original)
+++ xmlgraphics/batik/trunk/sources/batik-slideshow.mf Thu Nov 23 20:50:12 2006
@@ -18,5 +18,6 @@
             lib/batik-xml.jar \
             lib/xerces_2_5_0.jar \
             lib/xalan-2.6.0.jar \
-            lib/xml-apis-dom3.jar \
+            lib/xml-apis.jar \
+            lib/xml-apis-ext.jar \
             lib/js.jar

Modified: xmlgraphics/batik/trunk/sources/batik.mf
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/batik.mf?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/batik.mf (original)
+++ xmlgraphics/batik/trunk/sources/batik.mf Thu Nov 23 20:50:12 2006
@@ -23,6 +23,7 @@
             batik-pp.jar \
             lib/xerces_2_5_0.jar \
             lib/xalan-2.6.0.jar \
-            lib/xml-apis-dom3.jar \
+            lib/xml-apis.jar \
+            lib/xml-apis-ext.jar \
             lib/pdf-transcoder.jar \
             lib/js.jar

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGAElementBridge.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGAElementBridge.java?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGAElementBridge.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/SVGAElementBridge.java Thu Nov 23 20:50:12 2006
@@ -147,8 +147,9 @@
         }
 
         public void handleEvent(Event evt) {
-            if (AbstractEvent.getEventPreventDefault(evt))
+            if (evt.getDefaultPrevented()) {
                 return;
+            }
             SVGAElement elt = (SVGAElement)evt.getCurrentTarget();
             Cursor cursor = Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
             userAgent.setSVGCursor(cursor);
@@ -169,8 +170,9 @@
         }
 
         public void handleEvent(Event evt) {
-            if (AbstractEvent.getEventPreventDefault(evt))
+            if (evt.getDefaultPrevented()) {
                 return;
+            }
             //
             // Only modify the cursor if the target's cursor property is 
             // 'auto'. Note that we do not need to check the value of 
@@ -220,8 +222,9 @@
         }
 
         public void handleEvent(Event evt) {
-            if (AbstractEvent.getEventPreventDefault(evt))
+            if (evt.getDefaultPrevented()) {
                 return;
+            }
             // No need to set the cursor on out events: this is taken care of
             // by the BridgeContext
             

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/AbstractEvent.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/AbstractEvent.java?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/AbstractEvent.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/AbstractEvent.java Thu Nov 23 20:50:12 2006
@@ -214,19 +214,10 @@
     }
 
     /**
-     * <b>DOM</b>: Returns whether this Event implements the CustomEvent
-     * interface.
-     * @return false
-     */
-    public boolean isCustom() {
-        return false;
-    }
-
-    /**
      * <b>DOM</b>: Returns whether <code>preventDefault</code> has been
      * called on this object.
      */
-    public boolean isDefaultPrevented() {
+    public boolean getDefaultPrevented() {
         return preventDefault;
     }
 
@@ -312,11 +303,6 @@
 
     void setTarget(EventTarget target) {
         this.target = target;
-    }
-
-    public static boolean getEventPreventDefault(Event evt) {
-        AbstractEvent ae = (AbstractEvent)evt;
-        return ae.isDefaultPrevented();
     }
 
     /**

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/DOMCustomEvent.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/DOMCustomEvent.java?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/DOMCustomEvent.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/DOMCustomEvent.java Thu Nov 23 20:50:12 2006
@@ -18,24 +18,26 @@
  */
 package org.apache.batik.dom.events;
 
+import org.w3c.dom.events.CustomEvent;
+
 /**
  * A custom event object.
  *
  * @author <a href="mailto:cam%40mcc%2eid%2eau">Cameron McCormack</a>
  * @version $Id$
  */
-public class DOMCustomEvent extends DOMEvent {
+public class DOMCustomEvent extends DOMEvent implements CustomEvent {
 
     /**
-     * The custom details associated with this event.
+     * The custom detail associated with this event.
      */
-    protected Object details;
+    protected Object detail;
 
     /**
-     * Returns the custom details of this event.
+     * Returns the custom detail of this event.
      */
-    public Object getDetails() {
-        return details;
+    public Object getDetail() {
+        return detail;
     }
 
     /**
@@ -45,8 +47,8 @@
                                   String typeArg,
                                   boolean canBubbleArg,
                                   boolean cancelableArg,
-                                  Object detailsArg) {
+                                  Object detailArg) {
         initEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg);
-        details = detailsArg;
+        detail = detailArg;
     }
 }

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/EventSupport.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/EventSupport.java?view=diff&rev=478769&r1=478768&r2=478769
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/EventSupport.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/dom/events/EventSupport.java Thu Nov 23 20:50:12 2006
@@ -208,7 +208,7 @@
      * <code>dispatchEvent</code> is called.
      *
      * @param target the target node
-     * @param e Specifies the event type, behavior, and contextual
+     * @param evt Specifies the event type, behavior, and contextual
      * information to be used in processing the event.
      *
      * @return The return value of <code>dispatchEvent</code>
@@ -225,29 +225,17 @@
      *   <code>null</code> or an empty string will also trigger this
      *   exception.
      */
-    public boolean dispatchEvent(NodeEventTarget target, Event e)
+    public boolean dispatchEvent(NodeEventTarget target, Event evt)
             throws EventException {
-        if (e == null) {
+        if (evt == null) {
             return false;
         }
-        AbstractEvent aevt = null;
-        CustomEvent ce = null;
-        boolean isCustom;
-        if (e instanceof CustomEvent) {
-            isCustom = true;
-            ce = (CustomEvent)e;
-        } else if (e instanceof org.w3c.dom.events.CustomEvent) {
-            isCustom = true;
-            ce = new WrappedEvent((org.w3c.dom.events.CustomEvent) e);
-        } else if (e instanceof AbstractEvent) {
-            isCustom = false;
-            aevt = (AbstractEvent) e;
-        } else {
-            throw createEventException
-                (DOMException.NOT_SUPPORTED_ERR,
-                 "unsupported.event",
-                 new Object[] {});
+        if (!(evt instanceof AbstractEvent)) {
+            throw createEventException(DOMException.NOT_SUPPORTED_ERR,
+                                       "unsupported.event",
+                                       new Object[] { });
         }
+        AbstractEvent e = (AbstractEvent) evt;
         String type = e.getType();
         if (type == null || type.length() == 0) {
             throw createEventException
@@ -256,89 +244,59 @@
                  new Object[] {});
         }
         // fix event status
-        if (!isCustom) {
-            aevt.setTarget(target);
-            aevt.stopPropagation(false);
-            aevt.stopImmediatePropagation(false);
-            aevt.preventDefault(false);
-        } else {
-            ce.setTarget(target);
-        }
+        e.setTarget(target);
+        e.stopPropagation(false);
+        e.stopImmediatePropagation(false);
+        e.preventDefault(false);
         // dump the tree hierarchy from top to the target
-        NodeEventTarget [] ancestors = getAncestors(target);
+        NodeEventTarget[] ancestors = getAncestors(target);
         // CAPTURING_PHASE : fire event listeners from top to EventTarget
-        if (!isCustom) {
-            aevt.setEventPhase(Event.CAPTURING_PHASE);
-        }
+        e.setEventPhase(Event.CAPTURING_PHASE);
         HashSet stoppedGroups = new HashSet();
         HashSet toBeStoppedGroups = new HashSet();
         for (int i = 0; i < ancestors.length; i++) {
             NodeEventTarget node = ancestors[i];
-            if (isCustom) {
-                ce.setDispatchState(node, Event.CAPTURING_PHASE);
-            } else {
-                aevt.setCurrentTarget(node);
-            }
-            fireEventListeners(node, e, true,
-                               stoppedGroups, toBeStoppedGroups, isCustom);
+            e.setCurrentTarget(node);
+            fireEventListeners(node, e, true, stoppedGroups,
+                               toBeStoppedGroups);
             stoppedGroups.addAll(toBeStoppedGroups);
             toBeStoppedGroups.clear();
         }
         // AT_TARGET : fire local event listeners
-        if (isCustom) {
-            ce.setDispatchState(target, Event.AT_TARGET);
-        } else {
-            aevt.setEventPhase(Event.AT_TARGET);
-            aevt.setCurrentTarget(target);
-        }
-        fireEventListeners(target, e, false,
-                           stoppedGroups, toBeStoppedGroups, isCustom);
+        e.setEventPhase(Event.AT_TARGET);
+        e.setCurrentTarget(target);
+        fireEventListeners(target, e, false, stoppedGroups,
+                           toBeStoppedGroups);
         stoppedGroups.addAll(toBeStoppedGroups);
         toBeStoppedGroups.clear();
         // BUBBLING_PHASE : fire event listeners from target to top
         if (e.getBubbles()) {
-            if (!isCustom) {
-                aevt.setEventPhase(Event.BUBBLING_PHASE);
-            }
+            e.setEventPhase(Event.BUBBLING_PHASE);
             for (int i = ancestors.length - 1; i >= 0; i--) {
                 NodeEventTarget node = ancestors[i];
-                if (isCustom) {
-                    ce.setDispatchState(node, Event.BUBBLING_PHASE);
-                } else {
-                    aevt.setCurrentTarget(node);
-                }
-                fireEventListeners(node, e, false,
-                                   stoppedGroups, toBeStoppedGroups, isCustom);
+                e.setCurrentTarget(node);
+                fireEventListeners(node, e, false, stoppedGroups,
+                                   toBeStoppedGroups);
                 stoppedGroups.addAll(toBeStoppedGroups);
                 toBeStoppedGroups.clear();
             }
         }
-        return isCustom ? ce.isDefaultPrevented() : aevt.isDefaultPrevented();
+        return e.getDefaultPrevented();
     }
 
     /**
      * Fires the given listeners on the given event target.
      */
     protected void fireEventListeners(NodeEventTarget node,
-                                      Event e,
+                                      AbstractEvent e,
                                       EventListenerList.Entry[] listeners,
                                       HashSet stoppedGroups,
-                                      HashSet toBeStoppedGroups,
-                                      boolean isCustom) {
+                                      HashSet toBeStoppedGroups) {
         if (listeners == null) {
             return;
         }
         // fire event listeners
-        CustomEvent ce = null;
-        AbstractEvent aevt = null;
-        String eventNS;
-        if (isCustom) {
-            ce = (CustomEvent) e;
-            eventNS = ce.getNamespaceURI();
-        } else {
-            aevt = (AbstractEvent) e;
-            eventNS = aevt.getNamespaceURI();
-        }
+        String eventNS = e.getNamespaceURI();
         for (int i = 0; i < listeners.length; i++) {
             try {
                 String listenerNS = listeners[i].getNamespaceURI();
@@ -349,30 +307,16 @@
                 Object group = listeners[i].getGroup();
                 if (stoppedGroups == null || !stoppedGroups.contains(group)) {
                     listeners[i].getListener().handleEvent(e);
-                    if (isCustom) {
-                        if (ce.isImmediatePropagationStopped()) {
-                            if (stoppedGroups != null) {
-                                stoppedGroups.add(group);
-                            }
-                            ce.resumePropagation();
-                        } else if (ce.isPropagationStopped()) {
-                            if (toBeStoppedGroups != null) {
-                                toBeStoppedGroups.add(group);
-                            }
-                            ce.resumePropagation();
+                    if (e.getStopImmediatePropagation()) {
+                        if (stoppedGroups != null) {
+                            stoppedGroups.add(group);
                         }
-                    } else {
-                        if (aevt.getStopImmediatePropagation()) {
-                            if (stoppedGroups != null) {
-                                stoppedGroups.add(group);
-                            }
-                            aevt.stopImmediatePropagation(false);
-                        } else if (aevt.getStopPropagation()) {
-                            if (toBeStoppedGroups != null) {
-                                toBeStoppedGroups.add(group);
-                            }
-                            aevt.stopPropagation(false);
+                        e.stopImmediatePropagation(false);
+                    } else if (e.getStopPropagation()) {
+                        if (toBeStoppedGroups != null) {
+                            toBeStoppedGroups.add(group);
                         }
+                        e.stopPropagation(false);
                     }
                 }
             } catch (ThreadDeath td) {
@@ -387,11 +331,10 @@
      * Fires the registered listeners on the given event target.
      */
     protected void fireEventListeners(NodeEventTarget node,
-                                      Event e,
+                                      AbstractEvent e,
                                       boolean useCapture,
                                       HashSet stoppedGroups,
-                                      HashSet toBeStoppedGroups,
-                                      boolean isCustom) {
+                                      HashSet toBeStoppedGroups) {
         String type = e.getType();
         EventSupport support = node.getEventSupport();
         // check if the event support has been instantiated
@@ -406,20 +349,21 @@
         // dump event listeners, we get the registered listeners NOW
         EventListenerList.Entry[] listeners = list.getEventListeners();
         fireEventListeners(node, e, listeners, stoppedGroups,
-                           toBeStoppedGroups, isCustom);
+                           toBeStoppedGroups);
     }
 
     /**
      * Returns all ancestors of the specified node.
      */
-    protected NodeEventTarget [] getAncestors(NodeEventTarget node) {
+    protected NodeEventTarget[] getAncestors(NodeEventTarget node) {
         node = node.getParentNodeEventTarget(); // skip current node
         int nancestors = 0;
         for (NodeEventTarget n = node;
              n != null;
-             n = n.getParentNodeEventTarget(), nancestors++) {}
-        NodeEventTarget [] ancestors = new NodeEventTarget[nancestors];
-        for (int i=nancestors-1;
+             n = n.getParentNodeEventTarget(), nancestors++) {
+        }
+        NodeEventTarget[] ancestors = new NodeEventTarget[nancestors];
+        for (int i = nancestors - 1;
              i >= 0;
              --i, node = node.getParentNodeEventTarget()) {
             ancestors[i] = node;
@@ -488,377 +432,57 @@
     /**
      * Calls {@link AbstractEvent#setTarget}.
      */
-    protected void setTarget(AbstractEvent evt, NodeEventTarget target) {
-        evt.setTarget(target);
+    protected void setTarget(AbstractEvent e, NodeEventTarget target) {
+        e.setTarget(target);
     }
 
     /**
      * Calls {@link AbstractEvent#stopPropagation(boolean)}.
      */
-    protected void stopPropagation(AbstractEvent evt, boolean b) {
-        evt.stopPropagation(b);
+    protected void stopPropagation(AbstractEvent e, boolean b) {
+        e.stopPropagation(b);
     }
 
     /**
      * Calls {@link AbstractEvent#stopImmediatePropagation(boolean)}.
      */
-    protected void stopImmediatePropagation(AbstractEvent evt, boolean b) {
-        evt.stopImmediatePropagation(b);
+    protected void stopImmediatePropagation(AbstractEvent e, boolean b) {
+        e.stopImmediatePropagation(b);
     }
 
     /**
      * Calls {@link AbstractEvent#preventDefault(boolean)}.
      */
-    protected void preventDefault(AbstractEvent evt, boolean b) {
-        evt.preventDefault(b);
+    protected void preventDefault(AbstractEvent e, boolean b) {
+        e.preventDefault(b);
     }
 
     /**
      * Calls {@link AbstractEvent#setCurrentTarget}.
      */
-    protected void setCurrentTarget(AbstractEvent evt, NodeEventTarget target) {
-        evt.setCurrentTarget(target);
+    protected void setCurrentTarget(AbstractEvent e, NodeEventTarget target) {
+        e.setCurrentTarget(target);
     }
 
     /**
      * Calls {@link AbstractEvent#setEventPhase}.
      */
-    protected void setEventPhase(AbstractEvent evt, short phase) {
-        evt.setEventPhase(phase);
+    protected void setEventPhase(AbstractEvent e, short phase) {
+        e.setEventPhase(phase);
     }
 
     /**
      * Returns the ultimate original event for the given event.
      */
     public static Event getUltimateOriginalEvent(Event evt) {
+        AbstractEvent e = (AbstractEvent) evt;
         for (;;) {
-            if (evt instanceof AbstractEvent) {
-                AbstractEvent aevt = (AbstractEvent) evt;
-                Event origEvt = aevt.getOriginalEvent();
-                if (origEvt == null) {
-                    break;
-                }
-                evt = origEvt;
-            } else if (evt instanceof CustomEvent) {
-                CustomEvent cevt = (CustomEvent) evt;
-                Event origEvt = cevt.getOriginalEvent();
-                if (origEvt == null) {
-                    break;
-                }
-                evt = origEvt;
-            } else {
-                 break;
+            AbstractEvent origEvt = (AbstractEvent) e.getOriginalEvent();
+            if (origEvt == null) {
+                break;
             }
+            e = origEvt;
         }
-        return evt;
-    }
-
-    /**
-     * Wrapper class for {@link org.w3c.dom.events.CustomEvent} objects.
-     */
-    protected class WrappedEvent implements CustomEvent {
-
-        /**
-         * The wrapped event object.
-         */
-        protected org.w3c.dom.events.CustomEvent e;
-
-        /**
-         * The getNamespaceURI method of the wrapped event object.
-         */
-        protected Method getNamespaceURIMethod;
-
-        /**
-         * The stopImmediatePropagation method of the wrapped event object.
-         */
-        protected Method stopImmediatePropagationMethod;
-
-        /**
-         * The isDefaultPrevented method of the wrapped event object.
-         */
-        protected Method isDefaultPreventedMethod;
-
-        /**
-         * The resumePropagation method of the wrapped event object.
-         */
-        protected Method resumePropagationMethod;
-
-        /**
-         * The retarget method of the wrapped event object.
-         */
-        protected Method retargetMethod;
-
-        /**
-         * The setTarget method of the wrapped event object.
-         */
-        protected Method setTargetMethod;
-
-        /**
-         * The getOriginalEvent method of the wrapped event object.
-         */
-        protected Method getOriginalEventMethod;
-
-        /**
-         * Creates a new WrappedEvent object.
-         */
-        public WrappedEvent(org.w3c.dom.events.CustomEvent e) {
-            this.e = e;
-            Class cls = e.getClass();
-            try {
-                getNamespaceURIMethod
-                    = cls.getMethod("getNamespaceURI", (Class[]) null);
-                stopImmediatePropagationMethod
-                    = cls.getMethod("stopImmediatePropagation", (Class[]) null);
-                isDefaultPreventedMethod
-                    = cls.getMethod("isDefaultPrevented", (Class[]) null);
-                resumePropagationMethod
-                    = cls.getMethod("resumePropagation", (Class[]) null);
-                setTargetMethod = cls.getMethod
-                    ("setTarget", new Class[] { EventTarget.class });
-                retargetMethod = cls.getMethod
-                    ("retarget", new Class[] { EventTarget.class });
-                getOriginalEventMethod
-                    = cls.getMethod("getOriginalEvent", (Class[]) null);
-            } catch (NoSuchMethodException nsme) {
-                throw createEventException
-                    (DOMException.NOT_SUPPORTED_ERR,
-                     "unsupported.event",
-                     new Object[] {});
-            } catch (SecurityException se) {
-                throw createEventException
-                    (DOMException.NOT_SUPPORTED_ERR,
-                     "unsupported.event",
-                     new Object[] {});
-            }
-        }
-
-        // Event (since DOM 2) ///////////////////////////////////////////////
-
-        /**
-         * Returns the type of this event.
-         */
-        public String getType() {
-            return e.getType();
-        }
-
-        /**
-         * Returns the current target of this event.
-         */
-        public EventTarget getCurrentTarget() {
-            return e.getCurrentTarget();
-        }
-
-        /**
-         * Returns the target of this event.
-         */
-        public EventTarget getTarget() {
-            return e.getTarget();
-        }
-
-        /**
-         * Returns the current event phase of this event.
-         */
-        public short getEventPhase() {
-            return e.getEventPhase();
-        }
-
-        /**
-         * Returns whether this event bubbles.
-         */
-        public boolean getBubbles() {
-            return e.getBubbles();
-        }
-
-        /**
-         * Returns whether this event can be cancelled.
-         */
-        public boolean getCancelable() {
-            return e.getCancelable();
-        }
-
-        /**
-         * Returns the timestamp of this event object.
-         */
-        public long getTimeStamp() {
-            return e.getTimeStamp();
-        }
-
-        /**
-         * Stops propagation of this event.
-         */
-        public void stopPropagation() {
-            e.stopPropagation();
-        }
-
-        /**
-         * Prevents default processing of the event.
-         */
-        public void preventDefault() {
-            e.preventDefault();
-        }
-
-        /**
-         * Initializes this event object.
-         */
-        public void initEvent(String eventTypeArg,
-                              boolean canBubbleArg,
-                              boolean cancelableArg) {
-            e.initEvent(eventTypeArg, canBubbleArg, cancelableArg);
-        }
-
-        // org.w3c.dom.events.CustomEvent ////////////////////////////////////
-
-        /**
-         * Sets the value of currentTarget and eventPhase.
-         */
-        public void setDispatchState(EventTarget target, short phase) {
-            e.setDispatchState(target, phase);
-        }
-
-        /**
-         * Returns whether {@link #stopPropagation} has been called.
-         */
-        public boolean isPropagationStopped() {
-            return e.isPropagationStopped();
-        }
-
-        /**
-         * Returns whether {@link #stopImmediatePropagation} has been called.
-         */
-        public boolean isImmediatePropagationStopped() {
-            return e.isImmediatePropagationStopped();
-        }
-
-        // CustomEvent ///////////////////////////////////////////////////////
-
-        /**
-         * Clears the 'propagationStopped' and 'immediatePropagationStopped'
-         * flags.  This is needed for standard event dispatching and should
-         * only be called by the DOM Events implementation.
-         */
-        public void resumePropagation() {
-            try {
-                resumePropagationMethod.invoke(e, (Object[]) null);
-            } catch (InvocationTargetException ite) {
-                ite.printStackTrace();
-            } catch (IllegalAccessException iae) {
-                iae.printStackTrace();
-            }
-        }
-
-        /**
-         * Sets the target for this event.  This is needed for initialization
-         * of the custom event object and should only be called by the DOM Events
-         * implementation.
-         */
-        public void setTarget(EventTarget target) {
-            try {
-                setTargetMethod.invoke(e, new Object[] { target });
-            } catch (InvocationTargetException ite) {
-                ite.printStackTrace();
-            } catch (IllegalAccessException iae) {
-                iae.printStackTrace();
-            }
-        }
-
-        /**
-         * Clones this event object and sets the 'originalEvent' field of the
-         * clone to be equal to the original event object.  This is needed
-         * for sXBL event retargetting and should only be called by the
-         * DOM Events implementation.
-         */
-        public CustomEvent retarget(EventTarget target) {
-            try {
-                return new WrappedEvent
-                    ((org.w3c.dom.events.CustomEvent)
-                     retargetMethod.invoke(e, new Object[] { target }));
-            } catch (InvocationTargetException ite) {
-                ite.printStackTrace();
-            } catch (IllegalAccessException iae) {
-                iae.printStackTrace();
-            }
-            return null;
-        }
-
-        /**
-         * Returns the event from which this event was cloned.
-         */
-        public Event getOriginalEvent() {
-            try {
-                return (Event) getOriginalEventMethod.invoke(e, (Object[])null);
-            } catch (InvocationTargetException ite) {
-                ite.printStackTrace();
-            } catch (IllegalAccessException iae) {
-                iae.printStackTrace();
-            }
-            return null;
-        }
-
-        /**
-         * Returns the namespace URI of this custom event.
-         * @see org.w3c.dom.events.Event#getNamespaceURI
-         */
-        public String getNamespaceURI() {
-            try {
-                return (String) getNamespaceURIMethod.invoke(e, (Object[])null);
-            } catch (InvocationTargetException ite) {
-                ite.printStackTrace();
-            } catch (IllegalAccessException iae) {
-                iae.printStackTrace();
-            }
-            return null;
-        }
-
-        /**
-         * Indicates whether this object implements the
-         * {@link org.w3c.dom.events.CustomEvent} interface.
-         * This must return true for classes implementing this interface.
-         * @see org.w3c.dom.events.Event#isCustom
-         */
-        public boolean isCustom() {
-            return true;
-        }
-
-        /**
-         * Stops event listeners of the same group being triggered.
-         * @see org.w3c.dom.events.Event#stopImmediatePropagation
-         */
-        public void stopImmediatePropagation() {
-            try {
-                stopImmediatePropagationMethod.invoke(e, (Object[]) null);
-            } catch (InvocationTargetException ite) {
-                ite.printStackTrace();
-            } catch (IllegalAccessException iae) {
-                iae.printStackTrace();
-            }
-        }
-
-        /**
-         * Returns whether {@link #stopImmediatePropagation} has been called.
-         * @see org.w3c.dom.events.Event#isDefaultPrevented
-         */
-        public boolean isDefaultPrevented() {
-            try {
-                Boolean b = (Boolean)
-                    isDefaultPreventedMethod.invoke(e, (Object[]) null);
-                return b.booleanValue();
-            } catch (InvocationTargetException ite) {
-                ite.printStackTrace();
-            } catch (IllegalAccessException iae) {
-                iae.printStackTrace();
-            }
-            return false;
-        }
-
-        /**
-         * Initializes this event object.
-         * @see org.w3c.dom.events.Event#initEventNS
-         */
-        public void initEventNS(String namespaceURIArg,
-                                String eventTypeArg,
-                                boolean canBubbleArg,
-                                boolean cancelableArg) {
-            // This method is not needed for event processing.
-        }
+        return e;
     }
 }