tkormann 2002/07/04 00:19:02 Modified: sources/org/apache/batik/bridge SVGGElementBridge.java SVGSVGElementBridge.java test-resources/org/apache/batik/test samplesRendering.xml Added: samples/tests/spec/scripting svg2.svg Log: - Outermost svg element can now be modified dynamically - Add test that need to be checked manually Revision Changes Path 1.20 +2 -2 xml-batik/sources/org/apache/batik/bridge/SVGGElementBridge.java Index: SVGGElementBridge.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGGElementBridge.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -r1.19 -r1.20 --- SVGGElementBridge.java 18 Jun 2002 12:50:06 -0000 1.19 +++ SVGGElementBridge.java 4 Jul 2002 07:19:01 -0000 1.20 @@ -106,7 +106,7 @@ * Invoked when an MutationEvent of type 'DOMNodeInserted' is fired. */ public void handleElementAdded(CompositeGraphicsNode gn, - Element parent, + Node parent, Element childElt) { // build the graphics node GVTBuilder builder = ctx.getGVTBuilder(); 1.30 +2 -2 xml-batik/sources/org/apache/batik/bridge/SVGSVGElementBridge.java Index: SVGSVGElementBridge.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGSVGElementBridge.java,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- SVGSVGElementBridge.java 18 Jun 2002 12:50:06 -0000 1.29 +++ SVGSVGElementBridge.java 4 Jul 2002 07:19:02 -0000 1.30 @@ -217,7 +217,7 @@ gn.remove(node); disposeTree(e); - handleElementAdded(gn, (Element)e.getParentNode(), e); + handleElementAdded(gn, e.getParentNode(), e); } } 1.79 +3 -1 xml-batik/test-resources/org/apache/batik/test/samplesRendering.xml Index: samplesRendering.xml =================================================================== RCS file: /home/cvs/xml-batik/test-resources/org/apache/batik/test/samplesRendering.xml,v retrieving revision 1.78 retrieving revision 1.79 diff -u -r1.78 -r1.79 --- samplesRendering.xml 21 Jun 2002 14:20:40 -0000 1.78 +++ samplesRendering.xml 4 Jul 2002 07:19:02 -0000 1.79 @@ -322,6 +322,8 @@ <test id="samples/tests/spec/scripting/markerUpdate.svg" /> <test id="samples/tests/spec/scripting/filterPatternUpdate.svg" /> <test id="samples/tests/spec/scripting/use.svg" /> + <test id="samples/tests/spec/scripting/svg.svg" /> + <test id="samples/tests/spec/scripting/svg2.svg" /> </testGroup> </testSuite> 1.1 xml-batik/samples/tests/spec/scripting/svg2.svg Index: svg2.svg =================================================================== <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <!-- ====================================================================== --> <!-- Copyright (C) The Apache Software Foundation. All rights reserved. --> <!-- --> <!-- This software is published under the terms of the Apache Software --> <!-- License version 1.1, a copy of which has been included with this --> <!-- distribution in the LICENSE file. --> <!-- ====================================================================== --> <!-- ====================================================================== --> <!-- append child test --> <!-- --> <!-- @author [EMAIL PROTECTED] --> <!-- @version $Id: svg2.svg,v 1.1 2002/07/04 07:19:02 tkormann Exp $ --> <!-- ====================================================================== --> <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" onclick="changeSize(evt)" id="body" width="450" height="500" viewBox="0 0 450 500"> <title>svg viewport modification 'onclick'</title> <text x="50%" y="45" class="title">svg viewport modification 'onclick'</text> <script type="text/ecmascript"> function changeSize(evt) { var e = evt.currentTarget; e.setAttribute("viewBox", "0 0 225 250"); } </script> <g id="test-content"> <rect x="25%" y="25%" width="50%" height="50%" fill="crimson" /> </g> </svg>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]