Пример #1
0
 /**
  * Default implementation uses the root element of the document associated with BridgeContext.
  * This is useful for CSS case.
  */
 protected Element getBaseElement(BridgeContext ctx) {
   SVGDocument d = (SVGDocument) ctx.getDocument();
   return d.getRootElement();
 }
Пример #2
0
 /**
  * Creates a new BaseScriptingEnvironment.
  *
  * @param ctx the bridge context
  */
 public BaseScriptingEnvironment(BridgeContext ctx) {
   bridgeContext = ctx;
   document = ctx.getDocument();
   docPURL = new ParsedURL(((SVGDocument) document).getURL());
   userAgent = bridgeContext.getUserAgent();
 }