You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by tk...@apache.org on 2002/06/14 10:43:11 UTC
cvs commit: xml-batik/sources/org/apache/batik/bridge BaseScriptingEnvironment.java BridgeEventSupport.java
tkormann 2002/06/14 01:43:11
Modified: sources/org/apache/batik/bridge
BaseScriptingEnvironment.java
BridgeEventSupport.java
Log:
fix bug #9860
remove useless code
Revision Changes Path
1.12 +17 -1 xml-batik/sources/org/apache/batik/bridge/BaseScriptingEnvironment.java
Index: BaseScriptingEnvironment.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/BaseScriptingEnvironment.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- BaseScriptingEnvironment.java 13 Jun 2002 11:19:37 -0000 1.11
+++ BaseScriptingEnvironment.java 14 Jun 2002 08:43:11 -0000 1.12
@@ -109,6 +109,22 @@
return true;
}
if (elt.getAttributeNS
+ (null, SVGConstants.SVG_ONKEYUP_ATTRIBUTE).length() > 0) {
+ return true;
+ }
+ if (elt.getAttributeNS
+ (null, SVGConstants.SVG_ONKEYDOWN_ATTRIBUTE).length() > 0) {
+ return true;
+ }
+ if (elt.getAttributeNS
+ (null, SVGConstants.SVG_ONKEYPRESS_ATTRIBUTE).length() > 0) {
+ return true;
+ }
+ if (elt.getAttributeNS
+ (null, SVGConstants.SVG_ONLOAD_ATTRIBUTE).length() > 0) {
+ return true;
+ }
+ if (elt.getAttributeNS
(null, SVGConstants.SVG_ONERROR_ATTRIBUTE).length() > 0) {
return true;
}
1.41 +1 -13 xml-batik/sources/org/apache/batik/bridge/BridgeEventSupport.java
Index: BridgeEventSupport.java
===================================================================
RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/BridgeEventSupport.java,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- BridgeEventSupport.java 12 Jun 2002 12:02:51 -0000 1.40
+++ BridgeEventSupport.java 14 Jun 2002 08:43:11 -0000 1.41
@@ -368,18 +368,6 @@
}
/**
- * Returns the mouse coordinates on the screen using the
- * specified client mouse coordinates.
- *
- * @param coords the mouse coordinates in the client space
- */
- protected Point getScreenMouseLocation(Point coords) {
- Point screen = new Point(ua.getClientAreaLocationOnScreen());
- screen.translate(coords.x, coords.y);
- return screen;
- }
-
- /**
* Returns the element that is the target of the specified
* event or null if any.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org